葡萄城活跃报告11,出口到Excel复制行

我们有一个报告,当我们将其导出到excel时,会重复一些行。 当我通过detail_format方法时,只有1条logging被复制的行。 另外,当我出口到PDF,它工作正常。 对于重复的行,有一列数据显示在下一行。 所以,我扩大了这一栏,现在出口OK。 对于当前的数据来说,这是很好的,但是,如果数据更广泛的话,它会再次实现。 文本框的相关属性是:

CanGrow = True; CanShrink = False; MultiLine = True; WrapMode = WrapMode.WordWrap; 

任何帮助是极大的赞赏。

导出到Excel时,可以将TextBox的WrapMode设置为None。 这不会为具有大量数据的列创build另一行。

 SectionReport1 rpt = new SectionReport1(); (rpt.Sections["detail"].Controls["textBox3"] as GrapeCity.ActiveReports.SectionReportModel.TextBox).WrapMode = GrapeCity.ActiveReports.Document.Section.WrapMode.NoWrap; rpt.Run(); XlsExport excelExport = new XlsExport(); excelExport.Export(rpt.Document, "../../SectionReport.xls"); 
Interesting Posts