Ich verwende den Code, um PDF-Datei aus einem Popup zu exportieren.Problem mit Crystal Reports-Bericht in ASP.NET - ExportToHttpResponse
Auf Schaltfläche klicken
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;
}
und in 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)
{
}
Der Code funktioniert in IE7 in Ordnung. Aber in IE6 schließt das Popup-Fenster nicht. Warum passiert das?