locked
handling dynamically generated PDF file RRS feed

  • Question

  • User-597672045 posted

    Hi,

    I have a page that dynamically generates a PDF file using ActiveReports.

    The code that does it looks like this.

    m_stream.Position = 0;  //this is memory stream
    Response.ContentType = "application/pdf";
    Response.BinaryWrite(m_stream.ToArray());
    Response.End();
    Of course this is only a part of the code, but the point is, I am using the Response object to make this happen.
    This works beautifully with the desktop browser.  The Acrobat reader launches, and I see the PDF file inside the browser. But not so with Win Mobile 6.0 IE.
    * The PDFViewer does not launch
    * It asks me if I want to savve
    * So I say yes.  It saves with the .ASPX extension!
    * And it does not let me change the extension.  I am stuck with the ASPX extension, and there is no tool in WinMobile 6.0 that I know of that would allow me to do that.
     
     
     
    Thursday, June 12, 2008 4:40 AM

All replies

  • User1634317999 posted

    Hello profnachos,

    * The PDFViewer does not launch

    What do you mean by PDFViewer? If you mean Adobe Reader you have to install this software first.

    Thursday, June 12, 2008 5:32 AM