How To Print Infopath 2003 Form To PDF programmatically

D

Ding Bat

Hello,

Does anyone know how to print a Infopath form to Adobe pdf using either
JScript or VBScript? I'm trying to accomplish this by adding a button to a
form that will perform this operation along with saving the pdf to a certain
directory location either locally or on a network drive.
 
G

Greg Collins [InfoPath MVP]

I don't believe InfoPath 2003 supports printing to PDF directly... however, you might be able to install a PDF Printer (there are some free ones available from download.com).

Please keep in mind though that I believe InfoPath 2003 will ONLY print to the default printer. That means that if you need to normally print to a regular printer and occasionally print to PDF, that this will become a tiring process.

Please also bear in mind that (if my memory serves me correctly) people have previously discussed in this newsgroup that you InfoPath will not recognize a default printer change while it is open. In other words, if you normally have a regular printer set to default, you will have to close down InfoPath, change the default printer to the PDF printer, then relaunch InfoPath and print, then close down InfoPath, change and back to the regular printer. Not fun or convenient. (This is all based of of vague memories or newsgroup postings from a year or more ago).

Apparently with InfoPath 2007, however, with the PDF/XDS addin installed, might give you a viable solution using code. Please refer to this thread: http://groups.google.com/group/microsoft.public.infopath/browse_thread/thread/d673cde53dd6b22d

Good luck!
 
C

Clive Glover

This isn't quite the answer to the question but you can assign a specific
printer to a view. So you can have a print view associated with a screen
view that always go to pdf. I don't think you can control the name or where
it gets saved though. All users must have a pdf printer with the same name.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top