Link to home
Start Free TrialLog in
Avatar of enrique_aeo
enrique_aeo

asked on

ReportViewer1.ShowExportControls = true;

Hi experts, i'm using the report viewer of reporting services with the option ReportViewer1.ShowExportControls = true;
My question is whether it is possible to show the microsoft word as single format of export?
reportVIEWER.jpg
Avatar of Jason Yousef
Jason Yousef
Flag of United States of America image

There is no way to turn them off per report with the built in UI.  You can mark them as hidden in the report server config file or remove particular rendering extensions entirely, but these are both site wide settings.

I know you're using the ReportViewer control, you can hide the built-in export drop down and implement your own that lists only the extensions you want by calling Render on the ServerReport object directly.
example:
http://MYSERVER/ReportServer?MyReport&rs:Command=Render&rs:Format=WORD 
Avatar of enrique_aeo
enrique_aeo

ASKER

I implement your code, but does not work, view attached
 Url = Url + "&codigoActividad=" + document.getElementById("<%= hdCodCurso.ClientID %>").value;
 Url = Url + "&rs:Command=Render&rs:Format=WORD";
 alert(Url);
confirmWin = window.open("vistaPrevia.aspx" + Url, 'anycontent', 'width=800,height=600,status');

alert-URL.jpg
Hi,
Do you have the report on the root of the 'reportserver' or inside a folder?
ASKER CERTIFIED SOLUTION
Avatar of Jason Yousef
Jason Yousef
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial