I am trying to export pdf files to jpg format using code below:
for i = 1 to upperbound(ls_print_order)
ole_pdf.object.open(ls_print_order, "")
ole_pdf.object.optimizedocument(0)
ls_temp = ls_temp + string(i) + 'avanue_batch_printing.jpg'
ole_pdf.object.exporttojpeg(ls_temp, 600, 9)
ole_pdf.object.clearpage(i)
next
But the exporttojpeg causes a "Error calling external object function name" error in powerbuilder 9. I am using latest version. This error happens on the first pdf opened. This pdf is created from powerbuilder. Is there something that I am missing?
Error calling external object function name
Hello,
Are you calling SetLicenseKey after the open command and you just ommited it from the code above?
please check that ls_temp is computed properly at run time. Please note that ExportToJpeg() doesn't create the directory or folder in which to store the jpeg file, this should already exist on the sytem, it only creats the jpeg file.
Hope this helps.
Are you calling SetLicenseKey after the open command and you just ommited it from the code above?
please check that ls_temp is computed properly at run time. Please note that ExportToJpeg() doesn't create the directory or folder in which to store the jpeg file, this should already exist on the sytem, it only creats the jpeg file.
Hope this helps.