Do you have any general advice for being able to see errors? It seems when using the DynamicPDF component in drawing to web, that the usual errors don't show up on screen (just a blank page shows when errors are present).
Great Product, Thanks!
Debugging Errors
Re: Debugging Errors
Support · Oct 14, 2008Hello,
The likely reason you are seeing a blank window is because some stray HTML may be getting added to the end of the PDF stream. Try adding Visible = false immediately after the DrawToWeb() method and that will likely solve your problem.
Thanks,
ceTe Software Support Team
Re: Debugging Errors
Forum member · Mar 9, 2009If you are just doing a Draw, does it work the same?
Re: Debugging Errors
Support · Mar 9, 2009Hello,
The Draw method can be used to output the PDF to byte array or memory stream. You can also use the Draw method that takes the filepath to save the output PDF to the file system.
The DrawToWeb method is to be used when the PDF needs to be output to the browser.
Thanks,
ceTe Software Support Team
Re: Debugging Errors
Forum member · Mar 9, 2009Is there anyway to debug an pdf that is comming out blank?
Re: Debugging Errors
Support · Mar 10, 2009Hello,
What exactly you mean by the PDF coming out blank? Are you seeing a blank browser window? or are you getting blank PDF pages? If you are getting a blank browser window then probably it is because of some stray HTML along with the PDF. Please try adding the below line right after the DrawToWeb method of the document object and see if it solves your problem.
Visible = false;
Do you have any problem in using the Draw, DrawToWeb methods? Please be more specific about the problem you are having.
Thanks,
ceTe Software Support Team.
Re: Debugging Errors
Forum member · Mar 23, 2009I am using Draw, not DrawToWeb Please let me know where to look in you object.
Re: Debugging Errors
Support · Mar 24, 2009Hello,
What exact problem are you facing when using the Draw method? Are you getting any corrupted PDF? Are you seeing white blank PDF pages in the PDF even after adding elements to it? Can you please be more specific about the problem you are facing? Please send over the output PDF and the code you are using to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it further.
If you want to catch any error you will have to use the Try Catch block of the .NET framework and we do not provide any classes to catch errors.
Thanks,
ceTe Software Support Team.