Quantcast
Channel: SCN : Unanswered Discussions - BI Platform
Viewing all articles
Browse latest Browse all 5661

Crystal Report Export to PDF with Group Tree Bookmarks

$
0
0

Dear Forum

 

I have created a Crystal Report aspx page with an export function of the report to pdf. So far all has been successful, except form one little annoying this. The report does export to a pdf file and it does create bookmarks based on the group tree, BUT when opening the pdf file the bookmarks hiest point which should be the file name is the really long temp file name with .rpt as an extension. I have looked every where to try to get it to write the filename to the bookmark hierarchy without success.

 

I come you you all for any form of help to solve this issue.

 

My code is below

 

CrystalDecisions.Shared.ExportOptions export_options = new ExportOptions();

            export_options.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat;

            string ext = ".pdf";

            string reportName = "Filename";

            CrystalDecisions.Shared.PdfFormatOptions pdfOptions = new PdfFormatOptions();

            pdfOptions.CreateBookmarksFromGroupTree = true;

            export_options.ExportFormatOptions = pdfOptions;

 

 

            report.ExportToHttpResponse(export_options, Response, true, reportName);

 

 

            Response.Clear();

            Response.Buffer= true;

           

            Response.End();

 

Below is an image of the output

 

Bookmark.PNG

 

Any and all help is greatly appreciated


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>