Hi
I tried to export my report to Excel and PDF, it is exporting
correctly.
But it leaves a page opened, which was opened when I clicked on Export
Link.
How to close that page?
Is there any setting available for it?
Or else how to close it using C#.Net code?
Any help is appriciated.
TIA
PuneetOn Sep 25, 2:16 pm, appu <ajmera.pun...@.gmail.com> wrote:
> Hi
> I tried to export my report to Excel and PDF, it is exporting
> correctly.
> But it leaves a page opened, which was opened when I clicked on Export
> Link.
> How to close that page?
> Is there any setting available for it?
> Or else how to close it using C#.Net code?
> Any help is appriciated.
> TIA
> Puneet
Since this is a browser window, it would be difficult to close the
container window via C#.NET (ASP.NET). I'm not familiar w/your
circumstances; however, you could try calling the report via URL where
you would only pop open a save dialog. This URL might be helpful from
a custom application.
http://SomeServerName/reportserver?/SomeReportDirectory/ReportName&rs:Command=Render&Param1=SomeValue&rs:Format=PDF
-or-
http://SomeServerName/reportserver?/SomeReportDirectory/ReportName&rs:Command=Render&Param1=SomeValue&rs:Format=Excel
The format is:
http://<ServerName>/reportserver?/<Directory>/<ReportName>&rs:Command=Render&<ParameterName>=<ParameterValue>&rs:Format=<PDF/CSV/XML/Excel/MHTML>
Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant
Friday, February 24, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment