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
  • 相关阅读:
    jmeter正则表达式书写
    Jmeter中if控制器的使用
    Jmeter组件之-Test Fragment(测试片段)
    Jmeter生成测试报告
    idea+maven+testng环境搭建以及基本使用
    ArrayList,HashSet,HashMap
    JAVA提供了八大基本数据类型对应的引用数据类型
    Properties解析
    JSON解析
    excel 解析
  • 原文地址:https://www.cnblogs.com/qingtianhua/p/3270310.html
Copyright © 2011-2022 走看看