Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adobe PDF Printer Help

Status
Not open for further replies.

rmcabc

Technical User
Jun 18, 2011
2
US
I have written a program in Microsoft Visual Basic 10. One of the options I have is to send my form to the pdf printer, saving it to a temp location then I move it to another. This all works fine when I set the printing preferences for the output file to go to the first folder, then my program moves it where I need it. In attempting to make this a universal program I have set a button that allows the user to change the temp file location, however if I don't manually go into the adobe pdf preferences and change it to output to this new folder my progam abort the file move. Is there a way that I can write a line of code that would tell the pdf printer to send the output file to this new folder?

Thanks,
rmcabc
 

What PDF printer are you using? Is it the one that comes with Acrobat Professional (shows up as Adobe PDF under printers), or one of the free ones (e.g., CutePDF, WinPDF, PDF4Free, etc.)?



I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
Actually since I made this post I've discovered a way to do it. When I set the new path I use the same variable and change the registry.

My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\9.0\AdobePDFOutputFolder", "2", "My_New_Path")

That is all there is to it! It works the same with any of the "free" pdf creators.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top