找回密码
 立即注册

QQ登录

只需一步,快速开始

刘君

中级会员

141

主题

335

帖子

942

积分

中级会员

积分
942

活字格认证

刘君
中级会员   /  发表于:2015-2-3 17:08  /   查看:4451  /  回复:1
我需要一个用代码逐个单元进行填充和设置的示例Demo, 能提供否?
viewer上面的工具栏中按钮可以选择隐藏吗?

1 个回复

倒序浏览
iceman
社区贡献组   /  发表于:2015-2-4 09:54:00
沙发
回复 1楼刘君的帖子

你好,
ActiveReports 没有提供逐个设置单元格文本的接口。
Viewer 中可以隐藏工具栏中按钮、添加自定义按钮,参考代码:

  1. //Remove the print button.
  2. viewer1.Toolbar.ToolStrip.Items.RemoveAt(2);
  3. //Remove the extra separator.
  4. viewer1.Toolbar.ToolStrip.Items.RemoveAt(1);
  5. //Add a new button to the end of the tool strip with the caption "Print."
  6. ToolStripButton tsbPrint = new ToolStripButton("Print");
  7. viewer1.Toolbar.ToolStrip.Items.Add(tsbPrint);
  8. //Create a click event handler for the button.
  9. tsbPrint.Click += new EventHandler(tsbPrint_Click);
复制代码


谢谢
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部