I am having a problem creating a PDF file in Firefox. I am using the clock project from the PDFsharp demo projects to create my own web page to create a PDF file. I am expanding the clock project so that there is a Default.aspx page which does NOT send a PDF file to the browser; the Default.aspx page does nothing. It does have images and text on it as well as a print button. The print button does a Response.Redirect to another page called PrintPDF.aspx. I am using the same code as the clock project on the PrintPDF.aspx.cs page to create a PDF to send to Firefox, but when PrintPDF.aspx loads, I can still see the images and text from the Default.aspx page and nothing loads in PrintPDF.aspx. When I do a refresh on the browser, the PDF file is sent to the browser. I suspect the PDF file is getting stuck in the Response.Flush somehow. I have tried this in IE and it works.
If you want the code, look at the clock project because my code is exactly the same as that! Does anyone have any ideas as to why this is happening in Firefox and how to get this to work on a page load coming from another page?
|