Pop Up window not working
-
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