Solved

ReportViewer1.ShowExportControls = true;

Posted on 2010-09-03
4
1,241 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:huslayer
Comment Utility
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
Comment Utility
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:huslayer
Comment Utility
Hi,
Do you have the report on the root of the 'reportserver' or inside a folder?
0
 
LVL 21

Accepted Solution

by:
huslayer earned 250 total points
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Written by Valentino Vranken. Introduction: The first step of creating a SQL Server Reporting Services (SSRS) report involves setting up a connection to the data source and programming a dataset to retrieve data from that data source.  The data…
Steps to solve SSRS SQL 2008 R2 User Access Control (UAC) Permission Error With the introduction of SQL Server 2008 R2 and Vista (Windows 7 as well) came new enhanced security features. One of the features included was User Access Control (UAC) t…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now