2012-02-24 51 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) 

它完美地工作。

相關問題