登录
首页 » C# » PrintService

PrintService

于 2023-02-17 发布 文件大小:404.41 kB
0 120
下载积分: 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 个回复

  • Bibliographie_Chapitre5
    matlab image coding for watermarking image
    2010-03-13 01:49:04下载
    积分:1
  • minix-src-current.tar
    Minix比较全的源码,适合研究,开源系统,可以参考,觉得由于价值(Minix compare the entire source code, suitable for research, open source system, can refer to that because of the value of)
    2009-03-24 09:23:58下载
    积分:1
  • Outside debugging tools
    智能车开发基于K60,方便初学者的使用。高校智能车竞赛都选择这型(Smart car development is based on K60, which is convenient for beginners. Choosing this type of intelligent car competition in Colleges and Universities)
    2018-05-01 18:23:43下载
    积分:1
  • Multifulator
    说明:  多功能显示模拟器的设计与实现Multifunction Display Design and Implementation of Simulator(Multifunction Display Design and Implementation of Simulator)
    2011-04-02 19:08:26下载
    积分:1
  • C-精确解
    C语言编程解决一维激波管问题,本程序为精确解。((One dimensional shock tube problem in C programming))
    2021-01-09 12:58:51下载
    积分:1
  • 简易俄罗斯方块
    简易版的俄罗斯方块,没有数据库工具:visual studio2017+sql server2014
    2022-07-22 07:50:49下载
    积分:1
  • NAND_and_SD_card_SDIO_U_for_128M
    采用STM32内部自带的usb控制器外加大页nandflash k9f1g08u0a实现一个128M的U盘(STM32 uses the internal built-in usb controller to increase foreign 128M page nandflash k9f1g08u0a to achieve a U-disk)
    2020-11-11 15:59:45下载
    积分:1
  • mpeg_facedetector_src
    mpeg face detector!!
    2009-08-11 11:49:14下载
    积分:1
  • UVectorFont
    说明:  VC++将文字处理成轮廓边框效果只显示文字的轮廓,不显示文字实体,有点像空心文字,图形 + 文字 + 矢量(VC ++ treats the text as outline border effect, only displays the outline of the text, does not display the text entity, a bit like hollow text, graphics + text + vector)
    2020-12-21 17:29:07下载
    积分:1
  • diercishiyan
    我司通原F1型实验箱的二次开发功能是让用户通过自主设计,加深对有关实验内容所涉及的理论知识的理解和掌握。用户在掌握CPLD和DSP开发技术的基础上,以我司提供的实验箱为硬件,自主实现我司通原F1型实验箱已有的及相关的功能。(Our former F1 experimental me through secondary development function is to allow users to independently design and deepen the theoretical knowledge about the contents of the experiment involved to understand and master. Users control CPLD and DSP development technology based on our experimental boxes provided for the hardware, through self-realization of our original F1 experimental me already and related functions.)
    2014-02-24 22:43:06下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载