hai
how to export a crystal report to pdf format using vb application
please help me
thank u
rachamalluUnless you provide more information, it will be rather difficult to help you. What version of Crystal Reports are you using? What method are you using to display your reports? etc...
Try to do a search on Crystal's Website:
http://support.businessobjects.com/search/advsearch.asp|||i am using crystal report 6.0 and vb 6.0
i am using crystalreport1.printreport to display the report|||I had read somewhere that exporting to pdf through code isn't available in versions previous to 8.5, but I'm not positive. If you can upgrade to 8.5, I can tell you how to do it using RDC (Report Designer Component) as that's what I use for Exporting.
Unless you're referring to exporting based on pressing the export button on the report itself. If thats the case, then you just need to have the correct dlls installed on the machine you're using.|||hai
how to export a crystal report to pdf format using vb application
please help me
thank u
Shahla|||The following code uses RDC to export to PDF
Dim mCrApp As New CRAXDRT.Application
Dim mCrrep As CRAXDRT.Report
mCrrep.ExportOptions.DiskFileName = OutputFileName
mCrrep.ExportOptions.DestinationType = crEDTDiskFile
mCrrep.ExportOptions.FormatType = OutputFileType
'In case u want to export the complete report, use the following code
mCrrep.ExportOptions.PDFExportAllPages = True
In case u want to export a page range from the report, use the following code
mCrrep.ExportOptions.PDFExportAllPages = False
mCrrep.ExportOptions.PDFFirstPageNumber = StartPage
mCrrep.ExportOptions.PDFLastPageNumber = EndPage
mCrrep.Export False
No comments:
Post a Comment