Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / December 2004

Tip: Looking for answers? Try searching our database.

Seting a printer at run-time.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RichardAtRVC - 20 Dec 2004 14:31 GMT
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
Brian Teutsch [MSFT] - 20 Dec 2004 19:20 GMT
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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.