none
Closing browser window after sending flushing Response RRS feed

  • Question

  • Hi,

     

    I have vb aspx page that exports local report to PDF, and I want to close current page after that.

     

    My code goes like:

     

    ...

    bytes = lr.Render("PDF", deviceInfo, mimeType, encoding, extension, streamids, warnings)

    Response.ClearContent()

    Response.ClearHeaders()

    Response.ContentType = "application/pdf"

    Response.AppendHeader("Content-Disposition", "attachment; filename=""" + "RateSheet.pdf" + """")

    Response.BinaryWrite(bytes)

    Response.Flush()

    Response.Close()

    ...

     

    this is part that do the job and now I vant to close this browser window. It is pop-up for printing options, and when user click Print button that should export my report to pdf (that code above does) and also should close that pop-up.

     

    Hanx in advance!

     

    zomi

     

    Wednesday, May 14, 2008 10:32 PM