Does anyone knwo how to export a crystal report to a pdf file with the PEexportto() function from the crpe32.dll?
The following returns error 692:
l_str_export.structsize = 524
l_str_export.formatdllname= "u2fcr.dll"
l_str_export.formattype = 0
l_str_export.destinationdllname="u2ddisk.dll"
l_str_export.destinationoptions= "c:\tmp\fax.pdf"
l_str_export.destinationtype = 1
int errorcode
g_rcode = PEExportTo(ii_printjob, l_str_export)
if g_rcode = 1 then
messagebox ("Message", "PEGetExportOptions Set"
else
errorcode = pegeterrorcode(ii_printjob)
messagebox ("Error", errorcode)
end if
The following returns error 692:
l_str_export.structsize = 524
l_str_export.formatdllname= "u2fcr.dll"
l_str_export.formattype = 0
l_str_export.destinationdllname="u2ddisk.dll"
l_str_export.destinationoptions= "c:\tmp\fax.pdf"
l_str_export.destinationtype = 1
int errorcode
g_rcode = PEExportTo(ii_printjob, l_str_export)
if g_rcode = 1 then
messagebox ("Message", "PEGetExportOptions Set"
else
errorcode = pegeterrorcode(ii_printjob)
messagebox ("Error", errorcode)
end if