逐页将DevExpress XtraReport导出到文本

时间:2012-02-24 03:31:02

标签: devexpress xtrareport

我希望能够只将XtraReport的第一页导出到文本。我可以看到在使用exportoptions导出为HTML(或其他各种格式)时如何做到这一点。在导出到文本时,我看不到任何方法。

有什么想法吗?

1 个答案:

答案 0 :(得分:2)

来自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)

效果很好。