on 06-13-2012 8:09 PM
I would like to know how to export a crystal report into pdf with bookmarks. I have written the code to export to pdf, but don't know how to include the "create bookmarks from group tree" option.Any help is greatly appreciated.
{code}
Dim myReport As New ReportDocument
myReport.Load("C:\Cae\Results.rpt")
Dim sPdf As String = "C:\Cae\Results.pdf"
myReport.ExportToDisk(ExportFormatType.PortableDocFormat, sPdf)
{code}
Use PdfFormatOptions and set the CreateBookmarksFromGroupTree property to True.
If you search for these 2 terms, you should find several code examples.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The only alternative I'm aware of is one of the 3rd-party Crystal Reports desktop scheduler (see list at http://kenhamady.com/bookmarks.html). It allows you to use hidden Crystal formulas to control the bookmarks in the exported pdf (you can specify the text, color, bold status, open/closed status, etc).
It also allows you to generate bookmarks from within subreports.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.