private static void ExportOptionsTest() { var rpt = new ReportDocument(); rpt.Load(@"Reports\JedenWierszArtykulParagraf.rpt"); if (rpt.IsLoaded) { Console.WriteLine("Report was loaded."); var formatOptions = ExportOptions.CreatePdfFormatOptions(); formatOptions.CreateBookmarksFromGroupTree = true; ExportDestinationOptions destinationOptions = new DiskFileDestinationOptions() { DiskFileName = "test.pdf" }; ExportOptions exportOptions = new ExportOptions { ExportDestinationType = ExportDestinationType.DiskFile, ExportDestinationOptions = destinationOptions, ExportFormatType = ExportFormatType.PortableDocFormat, ExportFormatOptions = formatOptions, }; rpt.Export(exportOptions); System.Diagnostics.Process.Start("report.pdf"); } }