Inconsistent PDF Display

Inconsistent PDF Display

Forum member · Dec 1, 2006
Hi, I am able to generate a PDF successfully on my development machine (in both Release & Debug modes) but other users are having issues with the test environment server. We are using IE6/Firefox with both servers. When the user clicks on an ASP ImageButton or LinkButton, I am utilising a bit of javascript (ie window.open) to load the aspx page containing the PDF generation code. For some users, only a blank aspx page is then displayed. For others (including myself), I am getting the PDF successfully generated in a separate new window (which was the intention). Does anyone know of any possible reasons for this inconsistent display behaviour? Could it be an Adobe Reader issue? I have read about the Edit -> Preferences -> Internet and UNCHECK "Display PDF In Browser" but don't think this is the problem. Thanks,

Re: Inconsistent PDF Display

Support · Dec 1, 2006
Hello, Can you please try adding the Visible = false; right after the DrawToWeb method of the document object, it stops any extra HTML getting outputted after the PDF stream. This may solve your problem. Thanks, ceTe Software Support Team.

Re: Inconsistent PDF Display

Forum member · Jan 16, 2007
Try Response.End(); after DrawToWeb