2012-02-24 78 views
0

我想只能将XtraReport的第一页导出为文本。我可以看到在使用exportoptions导出为HTML(或其他各种格式)时如何执行此操作。当我输出到文本时,我看不到任何方法。将DevExpress XtraReport导出到文本页面

任何想法?从DevExpress的

回答

2

答:

感谢您与我们联系。要完成此任务,您可以使用页面合并技术。有关其他信息,请参阅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) 

它完美地工作。