on 07-10-2015 12:45 PM
Hi Team
I am facing issue in Export (all available options) for IE8 browser. When clicked on export in the crystal report viewer I am getting below error.
Same code and same user is able to download the Export files in IE9+ browsers. Also for the same user and same IE8 Export works for old Report writer application which uses CE10. Now we are upgrading CE10 to CE14 and facing issue below. Need help.
Regards
Sudeep
Which OS are you running IE 8 on? Per the Product Availability Matrix (PAM), IE 8 is supported on Window 7 and Windows Server 2008, but not on anything newer than that.
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dell
rw.adp.ca seen in the above screen shot is the server where .net code is deployed. Client/user does not have access to BO server urls. rw.adp.ca get the report from BO server and displays to the user.
We are able to view the report in IE8 and export is working fine in all other browsers other than IE8.
Please advise.
Regards
Sudeep
Issue appears to be due to the users are not allowed to install ActiveX PrintControl so need to find work around if possible.
Update, above is not true, error indicates this is a header issue in our viewer. Info from the following MS KBA's on this subject:
https://support.microsoft.com/en-us/kb/815313
https://support.microsoft.com/en-us/kb/323308
and
https://support.microsoft.com/en-us/kb/323308
I'll discuss with dev and see what they say,,,
Don
Sudeep confirmed they found a work around and the issue is only when using a HTTPS connection as noted by the MS KBA:
void context_EndRequest(object sender, EventArgs e)
{
// Print issue fix. Need to set the content-disposition as attachment to get open save cancel.
// defualt is inline from report viewer, since the pdf respones is not visible to user for saving
// Second issue: IE8 Export was not working due to unwanted headers pragma: nocache. so we are clearing headers and adding what are required.
HttpContext context = ((HttpApplication)sender).Context;
if (context.Request.RawUrl.ToLower().Contains("viewreport.aspx") || context.Request.RawUrl.ToLower().Contains("viewadhocreport.aspx"))
{
if (((HttpApplication)sender).Response.ContentType.ToLower().IndexOf("application/") >=0 &&
((HttpApplication)sender).Response.ContentType.ToLower() != "application/x-javascript")
{
string contentType = ((HttpApplication)sender).Response.ContentType;
((HttpApplication)sender).Response.ClearHeaders();
((HttpApplication)sender).Response.AddHeader("Cache-Control", "private");
((HttpApplication)sender).Response.AddHeader("Content-Type", contentType);
((HttpApplication)sender).Response.AddHeader("content-disposition", "attachment");
}
}
}
Thank you Sudeep for confirming and finding a work around. I'll escalate to DEV and see if they want to fix this for you also.
Don
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.