Solved

ReportViewer1.ShowExportControls = true;

Posted on 2010-09-03
4
1,264 Views
Last Modified: 2012-08-14
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
0
Comment
Question by:enrique_aeo
  • 3
4 Comments
 
LVL 21

Expert Comment

by:Jason Yousef, MS
ID: 33601584
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 
0
 

Author Comment

by:enrique_aeo
ID: 33606736
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
0
 
LVL 21

Expert Comment

by:Jason Yousef, MS
ID: 33620057
Hi,
Do you have the report on the root of the 'reportserver' or inside a folder?
0
 
LVL 21

Accepted Solution

by:
Jason Yousef, MS earned 250 total points
ID: 33620081
Try Word not WORD !!
Something wrong with your URL

try this

http://MYSERVER/ReportServer/Pages/ReportViewer.aspx?%2fFOLDER%2fREPORTNAME&rs:Command=Render&rs:Format=Word
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Written by Valentino Vranken. Introduction: In a previous article (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Reporting-On-Data-From-Stored-Procedures-part-1.html) I announced that I would writ…
In this short article I will be talking about two functions in the SQL Server Reporting Services (SSRS) function stack.  Those functions are IIF() and Switch().  And I'll be showing you how easy it is to add an Else part to the Switch function. T…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question