I am exporting a GridView of about 1500 rows and 20 columns to Excel and PDF. I do both in a BackgroundWorker Thread. The Excel export works fantastic and does not lock my UI. However, the PDF export takes significantly longer and locks my UI thread even though I am running it from a different thread.
What gives?
This is in my DoWork() method. It 'hangs' on the "RunExport()" line.
What gives?
This is in my DoWork() method. It 'hangs' on the "RunExport()" line.
ExportToPDF pdfExporter =
new
ExportToPDF(uxResultsView);
pdfExporter.FileExtension =
"pdf"
;
pdfExporter.PageTitle =
"Provider Search Results"
;
pdfExporter.FitToPageWidth =
true
;
pdfExporter.ExportVisualSettings =
true
;
pdfExporter.RunExport(fileName);