This is a migrated thread and some comments may be shown as answers.

[Solved] Export to PDF Error for 30,000 records Dataset

1 Answer 132 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mallikharjun Mulagundla
Top achievements
Rank 1
Mallikharjun Mulagundla asked on 11 Dec 2009, 02:26 PM
Hi,

I am assigning a dataset, which has 30,000 records, to Telerik RAD Grid. Once I export that Grid to PDF,
My system is getting Hanged and giving message "Virtual Memory Low".  machine becomes dead.

Following is the code:

ExportPDF.DataSource = dsSKUListAllData;  
ExportPDF.DataBind();  
ExportPDF.ExportSettings.IgnorePaging = true;  
ExportPDF.ExportSettings.Pdf.PageWidth = Unit.Parse("270mm");  
ExportPDF.ExportSettings.OpenInNewWindow = true;  
ExportPDF.MasterTableView.HierarchyDefaultExpanded = true;  
ExportPDF.Rebind();  
 
ExportPDF.ExportSettings.ExportOnlyData = true;  
ExportPDF.MasterTableView.ExportToPdf(); 

could anyone help me on this?

Thanks, Malli

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 15 Dec 2009, 06:14 PM
Hello Mallikharjun,

The speed and memory consumption depends on your scenario. If you have 20 columns and hierarchy it is expected that you won't be able to export 30000 items.

I created a simple demo on my end - 50000 items with 2 columns - the file was exported in less than a minute.

I recommend you examine the following thread:
Export to Excel limit

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Mallikharjun Mulagundla
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or