OK I know in general infopath is really bad at printing.
But that answer is no good for me. I need to beable to designate a printer
at run time..can anyone help me with this or point me to something that says
more than you can specify a printer in the xsf file at design time.
Thanks in advance.
Richard
The XSF properties are read-only, so there is no opportunity to change them
programmatically at runtime. There is no OM exposed for print settings, so
unfortunately you can't change the printing dynamically at runtime.
Brian
> OK I know in general infopath is really bad at printing.
>
[quoted text clipped - 6 lines]
>
> Richard
RichardAtRVC - 21 Dec 2004 09:56 GMT
Thanks Brian.
Does anyone know if this functionality is going to be introduced?
I think it's a major gap in InfoPaths functionality.
Richard
John Klupar - 21 Dec 2004 15:57 GMT
Overwriting the defualt system printer is adding a dependency on to any application you are writing. There are a whole slew of testcases that you would want to verify before rolling out this sort of form. For instance how do you handle the case when the user does not have permission to create a printer connection and the printer that you specify doesn't exist. It is certainly not a one liner of just setting ActivePrinter. I know that Word and Publisher support this sort of Object Model. It's not hard to do, just not trivial.
Using InfoPath you can setup a print view to use Word to print the form. Basically, InfoPath uses XSL that is created by Word and the Word Print engine. So that you get all the great data captureing benifits of InfoPath and the great print fidelity in Word. You might be able to specify the active printer via Word in the Word Print view. I'm not sure but it may help.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/ipsd
kUsingTheInfoPathToWordWizard_HV01119047.asp