博客
关于我
C# 毕业证书打印《一》
阅读量:416 次
发布时间:2019-03-06

本文共 496 字,大约阅读时间需要 1 分钟。

     最近一直在做证书打印的项目,好久都没写日志了。今天将代码整理了一下,希望将自己做证书打印的一些心得写出来,也希望能和大家一起交流。

     首先,证书打印必须实现打印的功能。了解打印功能是怎么实现的,打印关键的地方在于打印事件,我们定义一个打印的方法

//打印的方法private void pd_PrintPage(object sender, PrintPageEventArgs ev)
View Code

然后,在打印的事件中调用该方法

PrintDocument pd = new PrintDocument();  PrintDialog pdlg = new PrintDialog();  pd.PrintPage += new PrintPageEventHandler(pd_PrintPage);  pdlg.Document = pd;  pd.Print();

     第二步,取出你所需要的数据。

     第三步,将你所取的数据,设置打印的参数。

     第四步,打印功能的实现。

证书打印的导图如下:

 

 

 接下来将会介绍我自定义的打印类OnePoint和打印的属性介绍。

 

未完,待续……请继续关注。

转载地址:http://iovkz.baihongyu.com/

你可能感兴趣的文章
nmon_x86_64_centos7工具如何使用
查看>>
NN&DL4.1 Deep L-layer neural network简介
查看>>
NN&DL4.3 Getting your matrix dimensions right
查看>>
NN&DL4.7 Parameters vs Hyperparameters
查看>>
NN&DL4.8 What does this have to do with the brain?
查看>>
nnU-Net 终极指南
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
查看>>
No module named 'crispy_forms'等使用pycharm开发
查看>>
No module named cv2
查看>>
No module named tensorboard.main在安装tensorboardX的时候遇到的问题
查看>>