Solved

ReportViewer1.ShowExportControls = true;

Posted on 2010-09-03
4
1,278 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Written by Valentino Vranken. A while ago I wrote an article called Chart Optimization Tips (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Chart-Optimization-Tips.html).  This article explained how …
Introduction In the following article I’ll be discussing and demonstrating several different ways of how images can be put on a report. I’m using SQL Server Reporting Services 2008 R2 CTP, more precisely version 10.50.1352.12, but the methods ex…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

728 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