Hello Everyone,
I have been evaluating the DynamicPDF Generator for .NET (v4.x) for the last week and find that it does exactly as it states very quickly and easily. Definitely worthy software.
My question steams from what I'm trying to accomplish and don't know if there is a known limitation. I have a webform UI that takes a Order Number and then generates a bill of lading page for output in the pdf format. The layout of the form is a simple table structure containing straight text. I find that when run for a single lot up to around seven lots (each lot receives it's own page) stored into a single document the output to the web is VERY quick.
When I increase this document to contain a larger amount of pages (say 103 pages) the generator goes about generating the pages quickly but when it hits the DrawToWeb or Draw methods to actually create the PDF the whole thing hangs. Having utilized the Draw method to output to a file on the server I watch the file size growing to well over 100mb+ and then the file isn't able to be opened.
I want to know if there are any issues with these methods and creating a single document that could contain a large number of pages or suggestions on how to get around this problem?
Size Limitations
Re: Size Limitations
Forum member · May 23, 2006Hello All,
I found the issue with the size limitations. It was due to weak code on my behalf where not freeing the page object each time through the loop and creating a new page object reference it was enlarging it's size. Having freed the page object each time prior to reuse, the generator runs exceedingly fast and I'm getting document results for a 114 pages in under 15 secs.
Sorry for all the fuss. And thanks again for such an awesome software package.
Re: Size Limitations
Forum member · Apr 23, 2010how do you release/clear a page object? I am having success generating the PDF that i need, but each page contains all of the page content of the previous - overlaid.
I can't figure-out how to clear/reset the page object. what am I missing?
Thank you!!
Re: Size Limitations
Support · Apr 23, 2010Hello,
You may likely be using a static Page object or not creating a new instane of the page object each time. Please refer to the SimplReport example included with the download that shows how to dynamically add new pages as required.
Thanks,
ceTe Software Support Team