working with dynamically generated PDF with Win Mobile browser

Discussion in 'ASP .Net Mobile' started by David C, Jun 12, 2008.

  1. David C

    David C Guest

    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 save

    * 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.

    Thanks in advance.
    David C, Jun 12, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sid_mulpuru
    Replies:
    2
    Views:
    2,508
    sid_mulpuru
    May 31, 2005
  2. Chris Lyon
    Replies:
    0
    Views:
    314
    Chris Lyon
    Oct 7, 2003
  3. Krist
    Replies:
    6
    Views:
    698
    Arne Vajhøj
    May 7, 2010
  4. chen selina
    Replies:
    0
    Views:
    1,225
    chen selina
    Jul 13, 2010
  5. Ryan Malone
    Replies:
    0
    Views:
    149
    Ryan Malone
    Aug 23, 2004
Loading...

Share This Page