How to export to PDF file in Crystal Report?

Using VB 6 and Crystal Report 8.5

In the client system, when creating the report, I clicked the export button on the PDF button in the report; It displays Export, Export Option. Select "Export file" does not appear on the client system.

But it was shown on my system that it displays Export, Export Option. Select Export File. But on the client system, the file export screen is not displayed.

I can not save the report file in pdf format. Because he did not ask for the file name to save.

Can anyone help solve this problem?

+4
source share
4 answers

Try

Private Sub ExportReportToPDF(ReportObject As CRAXDRT.Report, Byval FileName As String, Byval ReportTitle As String) Dim objExportOptions As CRAXDRT.ExportOptions ReportObject.ReportTitle = ReportTitle With ReportObject .EnableParameterPrompting = False .MorePrintEngineErrorMessages = True End With Set objExportOptions = ReportObject.ExportOptions With objExportOptions .DestinationType = crEDTDiskFile .DiskFileName = FileName .FormatType = crEFTPortableDocFormat .PDFExportAllPages = True End With ReportObject.Export False End Sub Private Sub Command1_Click() Dim objCrystal As CRAXDRT.Application Dim objReport As CRAXDRT.Report Set objCrystal = New CRAXDRT.Application Set objReport = objCrystal.OpenReport(ReportFileName, 1) ExportReportToPDF objReport, "c:\foo\foo.pdf", "foo" End Sub 
+3
source

1) Setting up the crystal report .. 2) Copy a copy of crxf_pdf.dll from c: \ windows \ crystal to the c: \ windows \ system32 folder inside ... 3) Then the problem is solved.

+1
source

In my case on Windows 8.1 x64, the solution was:

  • Locate the% programfiles% \ Seagate Software \ Shared folder on the developer's computer
  • copy the crtslv.dll and ExportModeller.dll files from dev to the folder C: \ windows \ SysWOW64 \

  • open command prompt with administrator privileges

  • register both crtslv.dll and ExportModeller.dll with regsrv32
  • Repeat pdf export ...

What all.

+1
source

This sounds like a problem deploying Crystal files. Make sure that the user has a file named u2ddisk.dll on his computer - this file is required for Crystal 8.5 to provide the option to export to the file. Otherwise, select the option "Export to application" instead. The availability of items in the "Export and Export Format" drop-down lists depends on the DLLs present, and it seems that you are missing the Export To Disk from the Destination drop-down list.

0
source

All Articles