2
我正在使用代码从弹出窗口导出pdf文件。ASP.NET中Crystal报表问题 - ExportToHttpResponse
在点击按钮
function popupReport()
{
var url = 'Report.aspx';
window.open(url, 'winPopupReport', 'width=300,height=300,resizable=no,scrollbars=no,toolbar=no,directories=no,status=no,menubar=no,copyhistory=no');
return false;
}
和Report.aspx.cs
ReportDocument repDoc = (ReportDocument) System.Web.HttpContext.Current.Session["StudyReportCrystalDocument"];
// Stop buffering the response
Response.Buffer = false;
// Clear the response content and headers
Response.ClearContent();
Response.ClearHeaders();
try
{
repDoc.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, true, "StudyReport");
}
catch(Exception ex)
{
}
的代码工作正常在IE7。但在IE6中,弹出式窗口未关闭。为什么发生这种情况?