Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
349
PDF export produces blank report
posted

Hi,

I would be grateful for any suggestions as to why the following code produces a blank pdf when downloaded and opened:

if (gridResults.Rows.Count > 0)
        {
          // configure exporter
          ReportGridDocumentExporter.Format = FileFormat.PlainText;
          ReportGridDocumentExporter.DownloadName = "report.txt";
          ReportGridDocumentExporter.TargetPaperOrientation = PageOrientation.Landscape;

          // trigger export
          ReportGridDocumentExporter.ExportMode =
            Infragistics.WebUI.UltraWebGrid.Exporter.ExportMode.Download;
          ReportGridDocumentExporter.Export(this.gridResults);
        }

I also have an export to Excel option as well, which works perfectly well, that is rows in the grid are displayed in the xls.

cheers

David

Parents
No Data
Reply Children