登录
首页 » C# » PrintService

PrintService

于 2023-02-17 发布 文件大小:404.41 kB
0 84
下载积分: 2 下载次数: 1

代码说明:

应用背景C#实现打印功能是通过使用PrintDialog控件来实现的。任何物有所值的应用程序都会拥有某种打印功能,不管是基本的打印功能还是更为复杂的打印功能,比如允许用户只打印所选的文本或某个范围内的页面。本节将探讨一下实现基本的C#打印功能,看看哪些类有助于打印文件中的文本。C#实现打印功能的过程是:在调用PrintDialog控件的ShowDialog方法之前,必须先设置PrintDialog类的Document属性。该属性接受一个PrintDocument类,以获得打印机设置并将输出内容发送给打印机。PrintDocument类需要 System.Drawing.Printing名称空间,因此,在定义使用PrintDocument类的对象前,必须包含这个名称空间。关键技术通过使用PrintDialog控件来实现。C#实现打印功能的过程是:在调用PrintDialog控件的ShowDialog方法之前,必须先设置PrintDialog类的Document属性。该属性接受一个PrintDocument类,以获得打印机设置并将输出内容发送给打印机。PrintDocument类需要 System.Drawing.Printing名称空间,因此,在定义使用PrintDocument类的对象前,必须包含这个名称空间。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • winImageCompletion-master
    Implementations of image processing algorithms(This project can be built by Visual Studio 2012. Project description file included. Currently it is for Windows only.)
    2015-04-20 10:43:47下载
    积分:1
  • DataShift
    用单片机和数码管实现的数据移位功能,供初学者学习使用(With the microcontroller and digital control to achieve the data shift function, for beginners learning to use)
    2009-10-28 18:42:34下载
    积分:1
  • RELEASEPDLL
    将dll文件加入文件资源之后调用函数释放,实现了将dll文件打包(Dll files will be added to the file after the call function to release resources to achieve the dll file is packaged)
    2013-09-12 21:02:42下载
    积分:1
  • 20_analog_circuit
    这个是工程师应该掌握的20个电路,希望大家可以了解参考一下,谢谢!(This is the engineer should master 20 circuit, I hope you can understand the reference, thank you!)
    2015-10-10 15:23:40下载
    积分:1
  • Essential.cpp
    efficient C著名的C++书籍,非常好用的chm版本。(efficient C)
    2009-05-29 20:44:07下载
    积分:1
  • yaojiushengzhaosheng
    自己做的研究生招生系统,增加了学校之间的比较功能,图标显示,分数线预测等(Own graduate admissions system, increases the comparison function between schools, icons, score prediction)
    2013-12-01 16:01:19下载
    积分:1
  • TI_DMC_HV_PMSM_F28335_Sensorless-2
    TI_ DMC_ HV_ PMSM_ F28335_Sensorless 2.psimsch
    2020-11-17 14:59:40下载
    积分:1
  • DICOM-display
    DICOM文件在Windows下的显示文档,包括VC++和OPENGL混合编程,VC++和MITK混合编程,和ITK、VTK、dcmtk等开源库混合编程(DICOM file in Windows, display the document, including VC++ and OPENGL hybrid programming, VC++ and MITK hybrid programming, and ITK, VTK, dcmtk hybrid programming such as open-source library)
    2010-06-30 16:48:13下载
    积分:1
  • bitlocker_detect
    含:分析物理磁盘的分区表和各分区的bootsector for bitlocker以及WINDOWS下设备枚举.(including : Analysis of the physical disk partition table and the district for the bootsector bitlocker and W INDOWS equipment under enumeration.)
    2006-12-31 16:49:14下载
    积分:1
  • jpeg6b
    图形编辑,jpeg库,从下属文件中可以找到libjpeg.lib,看opengl高级编程可以用到。(Graphics editor, jpeg library, the file can be found from a subordinate libjpeg.lib, see opengl advanced programming can be used.)
    2009-09-22 10:22:33下载
    积分:1
  • 696518资源总数
  • 105922会员总数
  • 10今日下载