Convert crystal report with hyperlinks to pdf

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Merger for .NET (v4)  /  Convert crystal report with hyperlinks to pdf

DynamicPDF Merger for .NET (v4) Forum

Hi.

I have a crystal report which contains hyperlinks that point to files on the server. I would like to convert the crystal report to a pdf document and still maintain the hyperlinks with their respective urls.

How can I do this ?

Thanks in advance.
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.

All times are US Eastern Standard time. The time now is 1:54 AM.