PDF Group Tree Export to Crystal Reports
I am trying to figure out how to export crystal report to PDF file from ASP.NET application. I got it to work, however, I want the group tree to appear as bookmarks in the PDF. From what I found on google, the way to do this is to declare an instance of the CrystalDecisions.Shared.PDFFormatOptions class and then set the GroupTree property to true. However, this class does not seem to exist. I don't know if it's because I'm using Crystal Reports for Visual Studio 2008 or what, but it's not there. There is a class called CrystalDecisions.Shared.PdfRtfWordFormatOptions, however the GroupTree property does not exist in this class. Can anyone tell me what I am missing?
thank
source to share
Not familiar with this class as I have never used it, but tried it on my machine:
CrystalDecisions.Shared.PdfFormatOptions options = new CrystalDecisions.Shared.PdfFormatOptions();
options.CreateBookmarksFromGroupTree = true;
It seemed good to me. I have a full version of Crystal Reports 2008, not the one that comes with visual studio, so that might be the reason it doesn't work for you.
I would check that you have a reference in your project to the CrystalDecisions.Shared namespace in your project.
source to share