N
Nautilus
Hi there!
We are rendering some PDF reports from an ASP.NET application, directly
to the IE browser. Those reports are beign generated from a SQL
Reporting Services server. We have the requirement of displaying the
reports inside the browser. In order to do that, we have this:
Response.ClearContent();
Response.ClearHeaders();
Response.AppendHeader("content-length", reportData.Length.ToString());
Response.AppendHeader("content-disposition", "inline;
filename=SalesReport.pdf");
Response.ContentType = "application/pdf";
Response.BinaryWrite(reportData);
Response.Flush();
Response.Close();
The report shows perfectly. But our problem is that inside the Acrobat
Reader "sub window" on the browser, if the user clicks "Send By Email",
the reader creates an outlook email with an attachment called
"Report.ASPX". This one is the ASPX page used for rendering the report,
instead the "SalesReport.pdf" name suggested in the headers. Of course,
the customers complains about seeing garbage when looking at the attach
(really a PDF file, with the wrong extension).
Is there are any other way to indicate the filename to IE? Any ideas or
workaround on this?
Any suggestion is really appreciated. Thanks a ton in advance!!!
We are rendering some PDF reports from an ASP.NET application, directly
to the IE browser. Those reports are beign generated from a SQL
Reporting Services server. We have the requirement of displaying the
reports inside the browser. In order to do that, we have this:
Response.ClearContent();
Response.ClearHeaders();
Response.AppendHeader("content-length", reportData.Length.ToString());
Response.AppendHeader("content-disposition", "inline;
filename=SalesReport.pdf");
Response.ContentType = "application/pdf";
Response.BinaryWrite(reportData);
Response.Flush();
Response.Close();
The report shows perfectly. But our problem is that inside the Acrobat
Reader "sub window" on the browser, if the user clicks "Send By Email",
the reader creates an outlook email with an attachment called
"Report.ASPX". This one is the ASPX page used for rendering the report,
instead the "SalesReport.pdf" name suggested in the headers. Of course,
the customers complains about seeing garbage when looking at the attach
(really a PDF file, with the wrong extension).
Is there are any other way to indicate the filename to IE? Any ideas or
workaround on this?
Any suggestion is really appreciated. Thanks a ton in advance!!!