Post
by orjaneil » Thu Aug 17 2006
I have downloaded the technical note for powerbuilder, and this is what the code says:
PDFPrinter = DriverInit(PrinterName)
//PDFPrinter = PDFDriverInit("Amyuni PDF Converter")
ll_rc = SetResolution (PDFPrinter, 600)
ll_rc = SetDefaultConfig (PDFPrinter)
ll_rc = SetDefaultPrinter (PDFPrinter)
ll_rc = SetDefaultFileName (PDFPrinter, OutputFileDll )
ll_rc = SetFileNameOptions (PDFPrinter, NoPrompt + UseFileName )
ll_rc = EnablePrinter(pdfPrinter,LicensedTo,ActivationCode)
dw_list.print()
ll_rc = SetFileNameOptions (PDFPrinter, 0)
DriverEnd (PDFPrinter)
the ll_rc gets 1 on all of the function calls, I can see that the default printer is set to Amyuni PDF Converter but still the printer that is being used is the printer that it changed from.
I have even tried to set Amyuni as the default printer, even then another printer is used for printing.
If I change the code to use the second code line instead of the first, the Amyuni pdf converter driver simply disapears from the printer list and seems to be deleted as a printer driver.
//PDFPrinter = DriverInit(PrinterName)
PDFPrinter = PDFDriverInit("Amyuni PDF Converter")
Another thing, the code example from the technical note is for the 2.10 driver. I changed the declaring from cdintf210.dll to cdintf251.dll because the cdintf210.dll was not the one installed with the demo version of the printer driver.
If I can't get the demo driver to function correctly how can I get the licensed driver to work fine? I have some customers that need to be able to save to pdf in a windows 2003 citrix farm environment, will the normal 2.50 driver work there?