by IDEAL Software Support » Tue Dec 02, 2008 5:21 pm
Such printer specific options are not routed through the Windows API, therefore VPE can neither provide direct access to them.
But by using the method SetupPrinter() and storing the result into a PRS (Printer Setup) file, VPE is capable of copying the private data (and therefore the private options) of the printer driver permanently to file.
So, do the following:
Call VPE.SetupPrinter("personal settings.prs", PRINTDLG_ONFAIL) once. The printer setup dialog will be presented to you and you can make your settings. After pressing ok in the dialog, the settings will be permanently stored to the file "personal settings.prs".
Afterwards, each time after calling OpenDoc(), call VPE.SetupPrinter("personal settings.prs", PRINTDLG_ONFAIL) again.
Since the file "personal settings.prs" already exists, VPE will silently load the settings and no printer-setup dialog will be shown.
This way you can make use of any printer specific options.
If you wish to provide your users the capability to change the options later at any point in time, just make a special menu entry in your application's menu and call VPE.SetupPrinter("personal settings.prs", PRINTDLG_ALWAYS), which will force VPE to display the printer setup dialog always and to write the settings each time to file.
Hope, this helped.