原創(chuàng)|其它|編輯:郝浩|2012-11-20 12:00:38.000|閱讀 8517 次
概述:本實(shí)例顯示了使用DevExprese子控件XtraReport如何在打印預(yù)覽窗體中顯示報(bào)表的具體方法。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門(mén)軟控件火熱銷(xiāo)售中 >>
作為2012Visual Studio Magazine讀者選擇獎(jiǎng)金獎(jiǎng)報(bào)表類(lèi)金獎(jiǎng)獲得者,DevExprese子控件XtraReports Suite是一個(gè)跨平臺(tái)報(bào)表工具,在Windows Forms、ASP.NET、ASP.NET MVC、WPF、Silverlight、LightSwitch等開(kāi)發(fā)環(huán)境下都能有優(yōu)異的表現(xiàn)。本實(shí)例顯示了使用DevExprese子控件XtraReport如何在打印預(yù)覽窗體中顯示報(bào)表的具體方法。
C#
using System; using System.Windows.Forms; using DevExpress.LookAndFeel; using DevExpress.XtraReports.UI; // ... private void Form1_Load(object sender, EventArgs e) { XtraReport1 report = new XtraReport1(); ReportPrintTool printTool = new ReportPrintTool(report); // Invoke the Print Preview form modally, // and load the report document into it. printTool.ShowPreviewDialog(); // Invoke the Print Preview form // with the specified look and feel setting. printTool.ShowPreview(UserLookAndFeel.Default); }
VB
Imports System Imports System.Windows.Forms Imports DevExpress.LookAndFeel Imports DevExpress.XtraReports.UI ' ... Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load Dim report As New XtraReport1() Dim printTool As New ReportPrintTool(report) ' Invoke the Print Preview form modally, ' and load the report document into it. printTool.ShowPreviewDialog() ' Invoke the Print Preview form ' with the specified look and feel setting. printTool.ShowPreview(UserLookAndFeel.Default) End Sub
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都控件網(wǎng)