We help IT Professionals succeed at work.

Crystal Reports not exporting to PDF

Medium Priority
1,068 Views
Last Modified: 2013-11-25
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
Comment
Watch Question

BI Software Engineer
Commented:
Hi,
I think you need to unregister the dll for PDF exporting and try registering it again.
crxf_pdf.dll

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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;

Commented:
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.
Mike McCrackenSenior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013
Commented:
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

Author

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.



Mike McCrackenSenior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013

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

mlmcc
Mike McCrackenSenior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013

Commented:
What code is used to display the viewer?

mlmcc

Author

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
Mike McCrackenSenior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013

Commented:
I don't know what those are.

mlmcc

Author

Commented:
Partial resolved with the reg and unreg of files .......... some security issues on C: drive but we are not sure why.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.