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:
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
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