如何只禁用rdlc页面设置按钮? [英] how to disable only rdlc page setup button?
本文介绍了如何只禁用rdlc页面设置按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何禁用rdlc页面设置dialgue框按钮
how to disable rdlc page setup dialgue box button
推荐答案
ToolStrip toolStrip =(ToolStrip)PatientReportViewer.Controls.Find(toolStrip1,true)[0] ;
ToolStripItem PS = toolStrip.Items [14];
PS.Visible = false;
创建一个ToolStrip对象并在索引的帮助下访问PageSetup工具栏...这里是页面设置按钮的索引..
注意:PatientReportViewer是Reportviewer的名称
ToolStrip toolStrip = (ToolStrip)PatientReportViewer.Controls.Find("toolStrip1",true)[0];
ToolStripItem PS = toolStrip.Items[14];
PS.Visible = false;
create a ToolStrip object and access the PageSetup Toolbar with the help of index... here 14 is the index of Page Setup Button..
Note:"PatientReportViewer" is the Name of your Reportviewer
这篇关于如何只禁用rdlc页面设置按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文