zoukankan      html  css  js  c++  java
  • 如何显示打印预览窗口

    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

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    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
  • 相关阅读:
    两个数组的交集
    左叶子之和
    下载安装python
    占位
    2020 软件工程实践 助教总结
    安装使用 QEMU-KVM 虚拟化环境(Arch Linux / Manjaro / CentOS / Ubuntu )
    #69. 新年的QAQ
    1097E. Egor and an RPG game(Dilworth定理)
    #553. 【UNR #4】己酸集合
    #2099. 「CQOI2015」标识设计(插头dp)
  • 原文地址:https://www.cnblogs.com/qingtianhua/p/3270310.html
Copyright © 2011-2022 走看看