Hi all,
how to convert a crystal report into pdf format during run time.
please feel free to give advice.
thankx
Printable View
Hi all,
how to convert a crystal report into pdf format during run time.
please feel free to give advice.
thankx
cr actually has a capability of writing in pdf format
If you use the CR Viewer in your project, then you can use the Export button and add the appropriate dlls (from CR) to allow the
user to export to pdf file.
i would appreciate if some one can post a sample or a link.
thankx.
Try this
VB Code:
Dim ReportApp As New CRAXDRT.Application Dim ReportObject As CRAXDRT.Report Set ReportObject = ReportApp.OpenReport(myReport, 1) ReportObject.Database.LogOnServer "PDSODBC.DLL", myServer, myDatabase, myDbUserId, myDbPassword With ReportObject With .ExportOptions .DestinationType = crEDTDiskFile .FormatType = crEFTPortableDocFormat .DiskFileName = myOutputName End With .PaperSize = myPaperSize .PaperOrientation = myPaperOrientation .Export False End With
If you want the CR Viewer then an example is in my signature. "VB6/Crystal Report Ex" ;)
The export is part of the viewers "Export" button. No code needed to export.
thanx all