I have downloaded an evaluation version of your print converter so that I can evaluate it with my PowerBuilder application.
I have copied all the runtime files ( acfpdf.dll etc) into my application directory.
I watch the Printers folder as I run the attached code and I can see that the printer gets created, it becomes the default and then disappears. So most of the functionality seems to work, however there is never any output produced.
Can you please tell me what I am missing.
Code: Select all
long lv_hPrinter // printer handle
string lv_Msg // message String
lv_hPrinter = PDFDriverInit ( "PowerView PDF Converter" )
if lv_hPrinter = 0 then
MessageBox ( "PdfDriverInit FAILED", "0" )
return
end if
SetDefaultFileName ( lv_hPrinter, "C:\Temp\AMYUNI1.PDF" )
SetFileNameOptions ( lv_hPrinter, 3 )
SetDefaultConfig ( lv_hPrinter )
// serial no truncated for the post only.
EnablePrinter ( lv_hPrinter, "Powervision Software Inc.", "07EFC..." )
SetDefaultPrinter ( lv_hPrinter )
dw_1.Print()
SetFileNameOptions ( lv_hPrinter, 0 )
RestoreDefaultPrinter ( lv_hPrinter )
DriverEnd ( lv_hPrinter )
return
Norm Smith