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!

Cannot export to PDF - Missing or out-of-date dll error

Status
Not open for further replies.

Stuartp

Technical User
Feb 22, 2001
178
GB
I have written a program in VB6 which uses Crystal Reports 8.5 to export a report to a PDF. All works fine on my machine. I have installed on a Windows XP machine and the export function will not work. All I get is "Missing or out-of-date dll"

I used the Package and Deployment Wizard and included all the dlls from the Windows\Crystal folder on my machine. I also replaced the following dll's on the target machine so the version matched with mine:

crxf_pdf.dll
exportmodeller.dll
crtslv.dll

I registered the last 2 using regsvr32 and checked that u2ddisk exists on the target and is the same version as mine.

I have even tried installing the full CR program but it doesn't work.

The code I am using to do the export is as follows:

Code:
With poChaseCrxReport.ExportOptions
    .DestinationType = crEDTDiskFile
    .FormatType = crEFTPortableDoc
    .PDFExportAllPages = True
    .DiskFileName = "C:\Program Files\mis\pochase.pdf"
End With

poChaseCrxReport.Export (False)

If I remove the False command and let Crystal prompt for the various settings then it does export fine. But I need it to be automated.

Can anyone tell me where I have gone wrong please?

Thanks

Stuart
 
Have found the answer to the problem.

It was a coding error, it ought to say
Code:
 .formatType = crEFTPortableDocFormat

For some reason Crystal reports this as a .dll issue.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top