Posted by a ceTe Software moderator
Hello,
It is not possible to convert a crystal report file into PDF document directly using our product. However you can create a PDF document using the crystal report file. You will have to export the report file to PDF stream and then you can create a PDF using this stream. Following is some sample code.
Dim document as new MergeDocument
Dim source As New CrystalReportSource
Dim rpt As New Report
Dim stream As New MemoryStream
rpt.FileName = "report.rpt"
source.Report = rpt
stream = source.ReportDocument.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat)
document.Append(New PdfDocument(stream))
Thanks,
ceTe Software Support Team.