首页 > 慧问 > 频道

StimulSoft ReportsNet 关于处理报表时消息框的问题[Stimulsoft Reports.Net]

发表于2019-05-10 回复:0 查看:2248  |  
我创建了一个模板,在预览时可能是页,每页的信息不一样,且都需要读取图片,在有多页时,我通过StiReport subReport = new StiReport();reportData.SubReports.Add(subReport);这样的方式添加了多页,但是在预览时,如果有2页,预览完成后会有一个“准备报表”的提示消息没有释放,我的StiOptions.Engine.HideMessages = false;处理的过程长,必须显示消息,我应该怎么解决
1个回答
  • 1970-01-01 08:00
    设置代码如下: 需要通过 FetchCellStyle 事件逐个设置单元格的边框。FetchCellStyle 事件触发的前提是FetchStyle 属性设置为ture。 <pre class='brush: csharp'>this.c1TrueDBGrid1.FetchCellStyle += c1TrueDBGrid1_ FetchCellStyle; for (int i = 0; i < this.c1TrueDBGrid1.Splits[0].DisplayColumns.Count; i++) { this.c1TrueDBGrid1.Splits[0].DisplayColumns[i].FetchStyle = true; }</pre> 事件: <pre class='brush: csharp'> void c1TrueDBGrid1_ FetchCellStyle(object sender, C1.Win.C1TrueDBGrid.FetchCellStyleEventArgs e) { if (e.Row==1) { e.CellStyle.Borders.Color = Color.Red; e.CellStyle.Borders.BorderType = C1.Win.C1TrueDBGrid.BorderTypeEnum.Flat; e.CellStyle.Borders.Bottom = 1; e.CellStyle.Borders.Left = 1; e.CellStyle.Borders.Top = 1; e.CellStyle.Borders.Right = 1; } }</pre>
    1
    回复 举报
回复

登录 慧都网发表评论

扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP