I am trying to produce pdf files in a using a loop method 'For Each'
and the following error message is being thrown
Server cannot clear headers after HTTP headers have been sent.
Any ideas of a fix to problem
thx
creating pdf file in a loop
Re: creating pdf file in a loop
Support · Nov 18, 2011Hello,
Can you please send over the below details to our support team at: [^a|mailto:support@cete.com|opennewiwndow|support@cete.com^]? This information will help them to do some testing to find the cause for this error.
1. Full stack trace of error message.
2. Sample code which you are using.
3. Input PDF documents if you are using any.
4. Version of the IE installed in your system.
Thanks,
ceTe Software Support Team.
Re: creating pdf file in a loop
Support · Nov 18, 2011Hello,
This error can occur if you call the DrawToWeb method multiple times in a single web page. The DrawToWeb() method can only be called once per request to the page, the reason behind this is this method modifies the HTTP headers to stream the PDF document to the browser thus ending the page life cycle. Any subsequent calls to DrawToWeb() method will throw this error because the HTTP response object has already been sent to the browser.
Thanks,
ceTe Software Support Team.