Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Pop Up window not working

Pop Up window not working

Scheduled Pinned Locked Moved ASP.NET
sysadminhelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shajeel
    wrote on last edited by
    #1

    Hi, I am generating a report using a popup window i am opening the popup window using

    window.open("Reports.aspx", "", "fullscreen=no, width=925,height=700,top=5,left=30", false);

    In that window's code behind i am printing report using this code

    CrystalDecisions.Shared.ExportOptions expOp=crDocument.ExportOptions;
    CrystalDecisions.Shared.DiskFileDestinationOptions destOp=new CrystalDecisions.Shared.DiskFileDestinationOptions();
    Response.ClearContent();
    Response.ClearHeaders();
    destOp.DiskFileName=Server.MapPath("..\\Reports\\")+Session.SessionID.ToString() + ".xls";
    expOp.ExportFormatType=CrystalDecisions.Shared.ExportFormatType.Excel;
    ExcelFormatOptions options = new ExcelFormatOptions();
    options.ExcelUseConstantColumnWidth = false;
    expOp.FormatOptions = options;
    Response.ContentType = "application/vnd.ms-excel";
    expOp.DestinationOptions=destOp;
    expOp.ExportDestinationType=CrystalDecisions.Shared.ExportDestinationType.DiskFile;
    crDocument.Export();
    Response.WriteFile(destOp.DiskFileName);
    Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));
    Response.Flush();
    Response.Close();
    System.IO.File.Delete(destOp.DiskFileName);
    Response.End();

    problem is when i click the button for opening window twice second window takes the report of first window and first window shows blank. I want both reports to show. am i doing some thing wrong here??

    Regards Shajeel

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups