(Thanks to AVD for the coding found here How to Export to a PDF file in Crystal Report?).ĮDIT: After going through Phillipe's responses, I was stepping through my code and noticed that after it assigned crEFTPortableDocFormat to FormatType, it auto assigns "UXFPDF.DLL" to FormatDllName. On another note, if I make it so the user chooses the options, I can select PDF and it still gives me the same error. When I click Debug it highlights on the ReportObject.Export False line. The only format that doesn't export is PDF. Now, I've left the other options besides PDF in there just to show them, they're all commented out obviously, but if I try any of the other formats, it exports just fine. Set objExportOptions = ReportObject.ExportOptions Here is my code: Public Sub ExportReportToPDF(ReportObject As CRAXDRT.Report, ByVal filename As String, ByVal ReportTitle As String)ĭim objExportOptions As CRAXDRT.ExportOptions I've looked at all the other questions here regarding the issue but none of them seem to solve mine. I'm having issues with reporting a Crystal Reports file to PDF format.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |