Export Crystal Report In Pdf Format
I have an application in VB.NET using the crystal reports document. When printing, the text formatting is all correct. the problem exists when I'm trying to use the libraries to export to PDF, the last line of every page is not justified. Has anyone else got that problem? How do you correct it? thank you.
Here is my code that does the exporting:
Private Sub ExportToPDF(ByVal pCR As T1ReportFiles.crystalReportsDoc, ByVal pFilename As String)
Try
Dim CrDiskFileDestinationOptions As New CrystalDecisions.Shared.DiskFileDestinationOptions
CrDiskFileDestinationOptions.DiskFileName = pFilename
With pCR.ExportOptions
.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile
.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat
.FormatOptions = New CrystalDecisions.Shared.PdfRtfWordFormatOptions()
.DestinationOptions = CrDiskFileDestinationOptions
End With
pCR.Export()
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
How To Save A Crystal Report In Pdf
Failed to Export from Crystal Report to PDF. Tech Sign In Page Forgot Password? Don't have an account? I'm getting this error, regardless if I choose to export to a file or application. I've been doing some research and somebody told me that I have to look for the following file on my computer ' crxf_pdf. C# Crystal Reports Export to Pdf There are situations when we want to export Crystal reports to.pdf format programmatically. In these situations we can use ExportOptions for export the Crystal Reports to.pdf format. Also we have to set PdfRtfWordFormatOptions and ExportFormatType.PortableDocFormat.In the following example you can see how to export a Crystal Reports as a PDF format file.