document.DrawToWeb

document.DrawToWeb

Forum member · Sep 9, 2009
Hi, The document.DrawToWeb statement in VS 2008 with an Local "File System" web-site does not seem to work. No exception is thrown. I don't see any PDF file in a browser. How can I correct this behaviour please? What is the most recent version of DynamicPDF Generator (4.?) please? Thank you, Piyush Varma

Re: document.DrawToWeb

Support · Sep 9, 2009
Hello Piyush, We are able to run the sample examples included with the download in VS2008 without any problem. Are you seeing a statci blank white page? If yes, try adding Visible = false after the call to the DrawToWeb() method and see if that solves the problem. The current version of DynamicPDF Generator for .NET is v5.1.2. Thanks, ceTe Software Support Team

Re: document.DrawToWeb

Forum member · Sep 9, 2009
Where would I put 'Visible = false' call? Could you please give complete syntax or a command please?

Re: document.DrawToWeb

Support · Sep 10, 2009
Hello Piyush, You will have to add the Visible = false right after the DrawToWeb method. Visible is a property of the System.Web.UI.Control class and System.Web.UI.Page class inherits from System.Web.UI.Control namespace. So you can simply add the line and that will likely solve your problem. Below is the sample code for this. document.DrawToWeb(); Visible = false; Thanks, ceTe Software Support Team.

Re: document.DrawToWeb

Forum member · Sep 11, 2009
Thank you very much! I added the Page.Visible = false; in .aspx.cs code behind page (instead of a class file) and it worked!