Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1041
  • Last Modified:

Crystal Reports not exporting to PDF

Hi,

I have problem that has me stumped and I'm not sure where to start.

We have a VB6 Server / Client App that used SQL 2005 and Crystal 8.5. The workstation is Windows XP, sp2.

The application works fine in every way except the crystal viewer will not generate any PDF files.

It will export to every other type except PDF's. There is no error message, nothing in the event logs.

Thanks

ertnev74
0
ertnev74
Asked:
ertnev74
2 Solutions
 
Deepu SreedharBI Software EngineerCommented:
Hi,
I think you need to unregister the dll for PDF exporting and try registering it again.
crxf_pdf.dll
0
 
ertnev74Author Commented:
Hi deepusreedhar,

the crxf_pdf.dll wasn't registered before

I have now added the Regsvr32 "G:\Application\crxf_pdf.dll"

Below is a list of a batch file we execute to register the dll's & ocx's needed.

Can think of any other crystal dll we might require ??

Many thanks

ertnev74

cls
echo Registering the .dll files required by application
Regsvr32 "G:\Application\comctl32.dll"
Regsvr32 "G:\Application\comdlg32.dll"
Regsvr32 "G:\Application\craxddrt.dll"
Regsvr32 "G:\Application\craxdrt.dll"
Regsvr32 "G:\Application\craxdui.dll"
Regsvr32 "G:\Application\CRDesignerCtrl.DLL"
Regsvr32 "G:\Application\CRViewer.dll"
Regsvr32 "G:\Application\mfc42.dll"
Regsvr32 "G:\Application\msvbvm60.dll"
Regsvr32 "G:\Application\msvcirt.dll"
Regsvr32 "G:\Application\msvcp60.dll"
Regsvr32 "G:\Application\msvcrt.dll"
Regsvr32 "G:\Application\implode.dll"
Regsvr32 "G:\Application\P2smon.dll"
Regsvr32 "G:\Application\p2sodbc.dll"
Regsvr32 "G:\Application\p2ssql.dll"
Regsvr32 "G:\Application\ntwdblib.dll"
Regsvr32 "G:\Application\Msstdfmt.dll"

echo Registering the .ocx files required by application
Regsvr32 "G:\Application\comctl32.ocx"
Regsvr32 "G:\Application\Comdlg32.ocx"
Regsvr32 "G:\Application\Crystl32.OCX"
Regsvr32 "G:\Application\msflxgrd.ocx"
Regsvr32 "G:\Application\MSHFLXGD.OCX"
Pause;
0
 
spangdeltaITCommented:
Re-install crystal - I think there's a 'custom install' option - make sure ALL the export file types are checked.  This has been my solution when I've had the same problem.
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
mlmccCommented:
How are you trying to export the report?
Is it through code or the export icon on the viewer?
WHich viewer or method are you using?
If it is the OCX, it was never modified to handle export to PDF and can't do it.

I don't think the export dll needs to be registered but it may need to be in a specific directory.  Where are the other export dlls?

mlmcc
0
 
ertnev74Author Commented:
hi mlmcc,

the app is run via a mapped drive, G:. The batch file registers them.

I now appreciate that not all the above files require this.

Using process monitor and dependancey walker I found that the app is look for some further dll's.

But I not to sure if these are just a red herring as these files exist in the app directory.
CRXF_PDF
CRXF_RFT

I am trying to export the PDF via the Crystal Viewer, using the export button on the toolbar.

regards

ertnev74.



0
 
mlmccCommented:
What Crystal dlls are added as references in the application?

mlmcc
0
 
mlmccCommented:
What code is used to display the viewer?

mlmcc
0
 
ertnev74Author Commented:
Hi mlmcc,

Sorry for the delay.

Using Depend Walker and process monitor I have traced this down to what looks like missing DLL's.

CR_PDF_RES_EN
CR_PDF_RES_RES ?

I can find the first one but we can only find CR_PDF_RES without the other '_RES'

Any ideas where this might be located ?

Regards

ertnev74
0
 
mlmccCommented:
I don't know what those are.

mlmcc
0
 
ertnev74Author Commented:
Partial resolved with the reg and unreg of files .......... some security issues on C: drive but we are not sure why.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now