Previous | Next | (P-PDF) Acrobat 7
Topic: RE: Does Acrobat 7 let you set a default directory?
Conf: (P-PDF) Acrobat 7, Msg: 153300
From: mbaalman
Date: 8/12/2006 02:03 AM
I have not found a way to pass in a path via code... BUT yes is can be done. It is located in the "Adobe PDF" Properties then click on the "Printing Preferences..." button.
If you have the case on want to have multiple different paths the you can simple create different registry file and then just import which ever one you need.
To create the said registry file:
=======================
Note: create a REG file for the default setting, and one
for each other setting you desire (ie different paths)
1. First set you Adobe PDF printer Properties
2. Open the Registry Editor (Start, Run, Regedit)
3. Go to HKEY_CURRENT_USER\Printers\DevModePerUser"
you will see on the right side and Adobe PDF entry.
4. Export the setting for your Adobe PDF printer
(File, Export, and give it a nice descriptive name)
To Load a REG file (ie different Adobe PDF printer settings):
============================================
Option 1 - With out any coding:
------------------------------
Simply double click on the *.reg file
Option 2 - from code (ie VBA):
-----------------------------
From in you code add the following line, where sRegFile is the
path and filename you which ever *.reg file you want to use.
Shell "regedit.exe /s /c " & Chr(34) & sRegFile & Chr(34), vbHide
* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- OR - OR - OR - OR - OR - OR - OR - OR - OR - OR - OR -
* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
You could create multiple Adobe PDF printer objects, with each one of them have a unique name and their own settings and then you simply print to which ever printer you choose. This method requires more setup work up front. Then in you code you can simply print to the correct printer.
- Hope this helps. mb