用代码填充单元格
我需要一个用代码逐个单元进行填充和设置的示例Demo, 能提供否?viewer上面的工具栏中按钮可以选择隐藏吗? 回复 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);
谢谢
页:
[1]