首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏.NET开发那点事

    WPF PrintDialog 支持选择打印范围

    坑爹的PrintDialog 其实并没有队PageRange这个属性做处理。 自己处理一下~ public class PrintDialogWithPageRange:PrintDialog     {         public new void PrintDocument

    63020编辑于 2022-05-07
  • 来自专栏历史专栏

    【愚公系列】2023年11月 WPF控件专题 PrintDialog控件详解

    一、PrintDialog控件详解PrintDialog控件是WPF中的一个对话框,用于在打印文档时显示打印设置参数供用户选择并确认。 在WPF应用程序中使用PrintDialog控件非常简单,只需要在需要进行打印操作的地方创建一个PrintDialog实例,并调用它的ShowDialog方法即可:PrintDialog printDialog = new PrintDialog();if (printDialog.ShowDialog() == true){ // 获取打印设置参数 PrintTicket printTicket 2.常用场景PrintDialog控件是WPF中用于打印操作的标准对话框。它常用于以下场景:用户选择要打印的文档或图像时,可以使用PrintDialog控件来浏览可用的打印机和打印选项。 , RoutedEventArgs e){ PrintDialog printDialog = new PrintDialog(); if (printDialog.ShowDialog()

    1.4K11编辑于 2023-11-16
  • 来自专栏Java架构师必看

    显示打印对话框

    temp=.8004572 加一个printdialog到form上,然后调用   printDialog1.ShowDialog()   ------------------------------- --------------------------------   Dim  pt  As  Printing.PrintDocument                  Me.PrintDialog1 .Document  =  pt                  Me.PrintDialog1.ShowDialog(Me)   ----------------------------------  pd  As  Printing.PrintDocument   pd.DefaultPageSettings  =  PageSetupDialog1.PageSettings  '页面设置   PrintDialog1 .Document  =  pt   PrintDialog1.ShowDialog 本文由来源 21aspnet,由 javajgs_com 整理编辑,其版权均为 21aspnet 所有,文章内容系作者个人观点

    1.6K20发布于 2021-03-22
  • 来自专栏hbbliyong

    WPF备忘录(6)WPF实现打印功能

      在WPF 中可以通过PrintDialog 类方便的实现应用程序打印功能,本文将使用一个简单实例进行演示。首先在VS中编辑一个图形(如下图所示)。     private void Button_Click(object sender, RoutedEventArgs e) { PrintDialog dialog = new PrintDialog WPF 打印控件 无弹框打印 WPF中打印用到了 PrintDialog类。 其中设置打印属性的是PrintTicket,管理打印机的是PrintQueue。 = new PrintDialog(); SetPrintProperty(printDialog); var printQueue = SelectedPrintServer(PrintServerName = null) { printDialog.PrintQueue = printQueue; printDialog.PrintVisual(element, ""); } } /// <summary

    2.8K50发布于 2018-03-05
  • 来自专栏菩提树下的杨过

    打印机设置(PrintDialog)、页面设置(PageSetupDialog) 及 RDLC报表如何选择指定打印机

    幸好,.Net提供了“二”个很有用的类:PrintDialog(打印机设置对话框)、PageSetupDialog(页面设置对话框) (注:之所以给“二”加引号,是因为"打印机设置"其实已经完全包含了“ } private void btnPrintSet_Click(object sender, EventArgs e) { PrintDialog dlg = new PrintDialog(); if (dlg.ShowDialog() == DialogResult.OK) { "></param> private void btnPrintSet_Click(object sender, EventArgs e) { PrintDialog dlg = new PrintDialog(); if (dlg.ShowDialog() == DialogResult.OK) {

    4.2K70发布于 2018-01-24
  • 来自专栏AIoT技术交流、分享

    Python Qt GUI设计:QPrinter打印图片类(基础篇—21)

    self): # 新建一个QPrinter对象 printer=QPrinter() # 创建一个QPrintDialog对象,参数为QPrinter对象 printDialog ''' if printDialog.exec_(): # 创建一个QPainter对象,并指定绘图设备为一个QPrinter对象。

    1.4K30发布于 2021-10-29
  • 来自专栏Linux驱动

    9.QT-标准对话框

    ); QPrintDialog打印机对话框 QPrinter类介绍: QPrinter是打印设备及其参数的封装 QPrinter封装了系统中打印设备的驱动接口 试验:   QPrintDialog printDialog ; if (printDialog.exec() == QDialog::Accepted) {   QPrinter *printer=printDialog.printer(); //获取Qprinter

    1.8K40发布于 2018-05-28
  • 来自专栏全栈程序员必看

    .NET控件名称缩写一览表「建议收藏」

    sptSerialPort 13 sclServiceController 14 tmrTimer 印刷 1 psd PageSetupDialog 2 prd PrintDialog

    1K10编辑于 2022-08-09
  • 来自专栏嵌入式技术笔记

    Qt 报表实现(三)---QPainter+QPrinter

    QPrinter printer(QPrinter::ScreenResolution); printer.setPageSize(QPrinter::A4); QPrintDialog printDialog (&printer); printer.setOrientation(QPrinter::Portrait); //打印方向 if (printDialog.exec() == QDialog

    2.2K21发布于 2021-05-31
  • 来自专栏跟牛老师一起学WEBGIS

    C#控件命名规范

    对话框控件 ColorDialog color FontDialog font OpenFileDialog open PrintDialog

    3.3K31发布于 2018-10-23
  • 来自专栏云计算linux

    C#之二十三 打印和水晶报表

    1、PrintDocument类 PrintDocument组件用于设置一些属性,这些属性说明在基于Windows操作系统的应用程序中要打印什么内容以及打印文档的能力,可将它与PrintDialog组件一起使用来控制文档打印的各个方面 Document(属性) 获取或设置要预览的文档 UseAntiAlia(属性) 获取或设置一个值,该值批示打印是否使用操作系统的防锯齿功能 ShowDialog(方法) 显示“打印预览“窗口 3、PrintDialog Button1 执行打印操作 PrintDocument PrintDocument1 设置要打印的文档 PrintPreviewDialog PrintPreviewDialog1 显示“打印预览“窗口 PrintDialog PrintDialog1 显示“打印“窗口 主要程序代码: Private void printDocument1_PrintPage(objectsender,System.Drawing.PrintPageEventArgs

    3.1K00编辑于 2024-12-13
  • 来自专栏Java架构师必看

    调用API弹出打印机属性对话框

    调用api弹出打印机属性对话框  Author:vitoriatang From:Internet .NET Framework封装了很多关于打印的对话框,比如说PrintDialog, PageSetupDialog

    2.1K30发布于 2020-10-23
  • 来自专栏静默虚空的博客

    [C#][控件]常用控件命名规范

    sdlgSave FoldBrowserDialog fbdlg fgdlgBrowser FontDialog fdlg fdlgFoot ColorDialog cdlg cdlgColor PrintDialog

    87010编辑于 2022-05-07
  • 来自专栏Dotnet9

    一个WPF开发的打印对话框-PrintDialogX

    Fei-Sheng-Wu/PrintDialogX/tree/1.5.2.0/ [4]示例: https://github.com/Fei-Sheng-Wu/PrintDialogX/tree/1.5.2.0/PrintDialog

    81030编辑于 2022-06-10
  • 来自专栏Nicky's blog

    Qt4系列之开发文本编辑器

    addPermanentWidget(label);     } } //打印 void MainWindow::PrintText(){     QPrinter printer;     QPrintDialog printDialog (&printer,this);     if(printDialog.exec()){         QTextDocument *textDocument = textEdit->document

    96140编辑于 2022-05-07
  • 来自专栏Java架构师必看

    asp是什么缩写[净含量缩写]

    PerformanceCounter  prc Process  spt SerialPort  scl ServiceController  tmr Timer 印刷  psd PageSetupDialog  prd PrintDialog

    3K20编辑于 2022-02-28
  • 来自专栏Golang语言社区

    Golang语言情怀--第74期 区块链技术-比特币源码下载及编译环境配置

    跳过qtwebsockets-跳过qtwebview-跳过qtx11extras-跳过qtxmlpatterns-无openssl-无feature BealerManagement-无feature printdialog

    2.1K20编辑于 2022-05-25
  • 来自专栏跟着阿笨一起玩NET

    WinForm中的简单打印

    MessageBoxButtons.OKCancel, MessageBoxIcon.Information)) { if (this.printDialog1

    1.9K20发布于 2018-09-20
  • 来自专栏liulun

    基于QT的webkit与ExtJs开发CB/S结构的企业应用管理系统

    customPrintRequested槽的实现如下:     QPrinter* p = new QPrinter(QPrinter::HighResolution);     QPrintDialog printDialog (p, this);     printDialog.setWindowTitle("UTMP打印");     if(printDialog.exec() !

    4.1K80发布于 2018-01-12
  • 来自专栏c#Winform自定义控件系列

    使用GDI+画报表

    下面给个例子看看 1 private void button9_Click(object sender, EventArgs e) 2 { 3 printDialog1

    74510发布于 2019-09-11
领券