C
CJM
I have an application that generates PDF documents (from an ASP page). In
some cases, I need to generate a PDF then provide a link to that PDF from
the web page - this I can do fine. In other cases, I want to generate the
PDF, but then immediately open the PDF in the browser; in this case, once I
have generated the PDF, I am simply using 'Response.Write MyPDFPath' to open
the document.
However, for some people this doesn't work, but for some it does. And I
can't figure out why results are different. In both cases, the browser
address changes to match the URL for the PDF document, but in some cases,
all you can see is a blank screen. If you click on the Refresh/Reload
button, the PDF displays perfectly - so it's not a show-stopper, but it is a
bit of an inconvenience.
Has anyone got any ideas why this may be happening? Is there a better way
of opening the PDF? I thought of streaming directly to the client, but that
would present the user with an Open/Save/Cancel dialog, which although is
more intuitive, it's hardly any easier than clicking on Refresh.
Thanks in advance.
Chris
some cases, I need to generate a PDF then provide a link to that PDF from
the web page - this I can do fine. In other cases, I want to generate the
PDF, but then immediately open the PDF in the browser; in this case, once I
have generated the PDF, I am simply using 'Response.Write MyPDFPath' to open
the document.
However, for some people this doesn't work, but for some it does. And I
can't figure out why results are different. In both cases, the browser
address changes to match the URL for the PDF document, but in some cases,
all you can see is a blank screen. If you click on the Refresh/Reload
button, the PDF displays perfectly - so it's not a show-stopper, but it is a
bit of an inconvenience.
Has anyone got any ideas why this may be happening? Is there a better way
of opening the PDF? I thought of streaming directly to the client, but that
would present the user with an Open/Save/Cancel dialog, which although is
more intuitive, it's hardly any easier than clicking on Refresh.
Thanks in advance.
Chris