Although I set the option to 'show pdf in the browser' (Adbobe Acrobat 7.0), I get a white page and the pdf openend in Adobe Acrobat after using the DrawToWeb method.
I'm using ASP.Net 2.0, IIS 6 and version 3.0.3.0 of DynamicPDF Generator for .NET - Server Edition (ASP.NET 2.0 compilation).
With ASP.NET 1.1 I'm not getting any troubles.
Any help wought be thankfull!
PDF not shown in browser (IE 6, Asp.Net 2.0)
Re: PDF not shown in browser (IE 6, Asp.Net 2.0)
Forum member · May 15, 2006I've got the same problem... does anyone knows a solution?
Re: PDF not shown in browser (IE 6, Asp.Net 2.0)
Support · May 15, 2006Hello,
If you are using Acrobat v6.0, we did discover a bug that was in Visual Studio 2005. This bug was related to streaming any PDFs to the browser. You can take a look at the bug report here: http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=93482
. And notice that this has been fixed in Beta 2 of Visual Studio 2005. But a new bug was reintroduced when they fixed this one which is unresolved by Microsoft in Visual Studio 2005 and Acrobat 6.0.x in combination. Works fine when using Acrobat 7.0. Following is the link to the bug report that was submitted to Microsoft: http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=93483
.
Remember that even if you are running VS2005, that this bug will only affect PDFs draw to the browser (this will not affect PDFs saved to disk) and this will only affect machines that actually have VS2005 installed on them (likely development machines) and not any end users.
Also there could be some text getting output after the PDF stream. The easiest solution is to add a Response.End() directly after the Document's DrawToWeb method or by removing the extra HTML tags. This will prevent anything from being output after the PDF.
Thanks,
ceTe Software Support Team