不知到你的意思??
关键在于如何把PDF文档读取到PrintDocument对象中.哪位大侠帮忙.
是读取pdf文件啊。
设置打印机:
Dim dlg As New PrintDialog
dlg.Document = pdoc 'pdoc就是PrintDocument对象
If dlg.ShowDialog = DialogResult.OK Then
pdoc.Print()
End If
打印PrintDocument为PDF格式的方法:
1,安装Acrobat Professional 5.0以上版本(标准版也可),安装过程中选择添加Acrobat PDF打印机,打印时选择打印机为这个就可以打印pdf格式的文件。此法最简单。
2。引用Acrobat Control for ActiveX,内容稍多,具体参考有关资料,如Acrobat官方网站等,用Google搜一搜。
3.帖一篇C#的源码,是利用pdf文件格式创建的,研究研究吧^_^
using System;
using System.IO;
using System.Text;
using System.Collections;