这个是因为添加边框之后,界面没有刷新导致的,如果是区域报表,直接调用C#提供的Refresh() 方法。
- private void button1_Click(object sender, EventArgs e)
- {
- var obj = reportPropertyGrid.SelectedObject as GrapeCity.ActiveReports.SectionReportModel.TextBox;
- obj.Border.Style=BorderLineStyle.Solid;
- reportPropertyGrid.Refresh();
-
- Refresh();
-
-
- }
-
复制代码 如果是页面报表或RDL报表,需要Reload报表
- private void button1_Click(object sender, EventArgs e)
- {
- var obj = reportPropertyGrid.SelectedObject as GrapeCity.ActiveReports.SectionReportModel.TextBox;
- obj.Border.Style=BorderLineStyle.Solid;
- reportPropertyGrid.Refresh();
-
- Refresh();
-
-
- }
-
复制代码
|