Export report into PDF with group tree using crystal report 2008

Last post 07-07-2009 6:26 AM by CoolBond. 1 replies.

Sort Posts:

  • Export report into PDF with group tree using crystal report 2008

    07-07-2009, 5:42 AM
    • Contributor
      2,478 point Contributor
    • CoolBond
    • Member since 10-25-2007, 9:34 AM
    • Country
    • Posts 495

     Hi,

    I want to export the report into PDF format and the export should include the group tree also. I'm using Crystal report 2008.

    Please help me.

    Hope this will help you....

    " If people criticize you, hurt you, or shout at you,Don't be bothered. Just remember, In every game, audience make the noise, not the players "
  • Re: Export report into PDF with group tree using crystal report 2008

    07-07-2009, 6:26 AM
    Answer
    • Contributor
      2,478 point Contributor
    • CoolBond
    • Member since 10-25-2007, 9:34 AM
    • Country
    • Posts 495

     oooooopppss,

    Whenever i do post the question here, i found the solution before the approval. I spent a day to solve this(now may look just a 1 min work)

                ExportOptions rptOptions = new ExportOptions();
                PdfFormatOptions pdffprnat = new PdfFormatOptions();
                pdffprnat.CreateBookmarksFromGroupTree = true;
                rptOptions.ExportFormatOptions = pdffprnat;
                rptOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
                rptOptions.ExportDestinationType=ExportDestinationType.DiskFile;
                DiskFileDestinationOptions dest = new DiskFileDestinationOptions();
                dest.DiskFileName=@"c:\Output.pdf";
                rptOptions.ExportDestinationOptions = dest;
                crReportDocument.Export(rptOptions); 

    now the problem is the head node come like some hexadecimal data.

     

    Hope this will help you....

    " If people criticize you, hurt you, or shout at you,Don't be bothered. Just remember, In every game, audience make the noise, not the players "
Page 1 of 1 (2 items)