Posted by a ceTe Software moderator
Hello,
As you are able to generate PDFs for smaller ranges of your data it is possible that the larger data ranges are producing larger PDFs that are taking time and your web page is timing out while the PDF is being generated. to verify, try and increase the web page time out and see if that successfully loads the PDF generated using large data ranges.
There are two parts in the execution of DrawToWeb method - generation of the PDF and transmission of those PDF bytes to the browser. The PDF is held in memory as it is being generated and once the PDF generation is finished it is sent to the browser. Time taken to generate the PDF depend on your PDF generation code, size of the PDF being generated and the available resources. Please review the
performance considerations topic and check your code to see if there are any improvements you can make with regards to creating the PDF. As you mentioned that your database has grown in size, you may also want to take a look at the performance of your database queries that you use in PDF generation code. Speeding up the data retrieval part should help the overall performance.
Thanks,
ceTe Software Support Team.