In the old version we used to directly set the registry to determine the file save location as well as other properties, this worked fine
What we used to do was
1. Setup PDF Parameters i.e FileSave etc
2. Window Messages were used to trap print status and completion etc
3. Run Print Job to PDF XChange Printer from Application
4. Success , PDF was created where we wanted
New Environment is Windows 7, 64Bit Enterprise.
Simply Put ..
Old Code Was
Code: Select all
SubKey.SetValue("Save.FullFileName", "c:\Working\TestReport.pdf")
SubKey.SetValue("Save.ShowSaveDialog", "No")
SubKey.SetValue("Save.WhenExists", "Overwrite")
Code: Select all
Public PDFPFactory As New PXCComLib.CPXCControlEx
Public WithEvents PDFPrinter As PXCComLib.CPXCPrinter
PDFPrinter = PDFPFactory.Printer("", "PDF-XChange 4.0", "", "")
PDFPrinter.Option("Save.ShowSaveDialog") = False
PDFPrinter.Option("Save.File") = "c:\tmp\pdf\Test.pdf"
PDFPrinter.Option("Save.WhenExists") = "1"
We are always now getting the print save dialog instead of the file being saved where we asked it to go, Am I missing something!!
Thanks in Advance