【发布时间】:2012-02-25 05:33:11
【问题描述】:
我希望能够仅将 XtraReport 的第一页导出为文本。使用 exportoptions 导出到 HTML(或各种其他格式)时,我可以看到如何做到这一点。但是,在导出为文本时,我看不到任何方法。
有什么想法吗?
【问题讨论】:
标签: devexpress xtrareport
我希望能够仅将 XtraReport 的第一页导出为文本。使用 exportoptions 导出到 HTML(或各种其他格式)时,我可以看到如何做到这一点。但是,在导出为文本时,我看不到任何方法。
有什么想法吗?
【问题讨论】:
标签: devexpress xtrareport
来自 DevExpress 的回答:
感谢您与我们联系。要完成此任务,您可以使用 页面合并技术。有关更多信息,请参阅How to: Merge Pages of Two Reports 文章。请看下面的代码:
[VB.NET]
Dim report As New XtraReport1()
report.CreateDocument()
Dim ps As New PrintingSystem()
ps.Pages.Add(report.Pages(0))
ps.ExportToText(file)
效果很好。
【讨论】: