回复 1楼刘君的帖子
你好,
ActiveReports 没有提供逐个设置单元格文本的接口。
Viewer 中可以隐藏工具栏中按钮、添加自定义按钮,参考代码:
- //Remove the print button.
- viewer1.Toolbar.ToolStrip.Items.RemoveAt(2);
- //Remove the extra separator.
- viewer1.Toolbar.ToolStrip.Items.RemoveAt(1);
- //Add a new button to the end of the tool strip with the caption "Print."
- ToolStripButton tsbPrint = new ToolStripButton("Print");
- viewer1.Toolbar.ToolStrip.Items.Add(tsbPrint);
- //Create a click event handler for the button.
- tsbPrint.Click += new EventHandler(tsbPrint_Click);
复制代码
谢谢 |