Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How rto Export Crystal Report to pdf with crpe32.dll

Status
Not open for further replies.

Sjoker

Programmer
Aug 4, 2000
30
NL
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
 
FYI: In PB version 9 there will be an export to PDF! option for datawindows.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top