Click here to Skip to main content
16,012,223 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to know how to disable the Print Layout Button in MS Report Viewer using C#.
Can anybody help me?

Thanks,
ParvathySunu
Posted
Updated 31-Dec-10 2:06am
v2

Incase you are allowing printing of the report using a button on form, the following line can hide Print Layout Button at the cost of hiding print button as well as hiding page setup button.

reportViewer1.ShowPrintButton = false;


All these buttons i.e. Print Button, Page Setup and Print Layout buttons are grouped under property of ShowPrintButton.

Hope this help.
 
Share this answer
 
I am not sure but you can do it by modifying RsServer Configuration File[^],

In case you are not getting success with that I am sure THIS[^] may help you.

Thanks.
 
Share this answer
 
ya could view in chrome, right click it, go to 'inspect element', get the ID generated for it (if any)
then in c# ya could use the find element in document code and set the attribute disabled, or do .visible = false;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900