首页
论坛
新职位
搜索论坛
什么's new
新职位
新的个人资料帖子
最新活动
会员
目前的访客
新的个人资料帖子
搜索个人资料帖子
VB.NET社区
登录
登记
什么's new
搜索
搜索
仅搜索标题
经过:
新职位
搜索论坛
Menu
Log in
Register
安装应用
安装
首页
论坛
成分& Controls
报告/打印
无需用户干预即可打印PDF
您正在使用过期的浏览器。它可能无法正确显示此网站或其他网站。
您应该升级或使用
替代浏览器
.
回复主题
信息
<blockquote data-quote="AndreVeber" data-source="post: 9496" data-attributes="member: 11371"><p>What exactly library you are using to get access to Pdf?</p><p>PdfDocument, what is it? Just interesting.</p><p></p><p>Every PDF library have PdfDocument in its arsenal <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>I'm using Pdfium.Net SDK library for similar task <a href="//pdfium.patagames.com/c-pdf-library/">//pdfium.patagames.com/c-pdf-library/</a></p><p></p><p>[CODE]var doc = PdfDocument.Load("c:\test.pdf");</p><p>var printDoc = new PdfPrintDocument(doc);</p><p>PrintController printController = new StandardPrintController();</p><p>printDoc.PrintController = printController;</p><p>printDoc.Print();</p><p>[/CODE]</p><p></p><p>The PdfPrintDocument is derived from standard .Net PrintDocument, so all settings that you want (<span style="color: #3E3E3E">like Duplex etc)</span> can be set in this class</p><p>And empty StandardPrintController class (standard .Net class too) is used to remove .net printing dialog. If you want to remove any user interaction.</p></blockquote><p></p>
Insert quotes…
确认
发表回复
首页
论坛
成分& Controls
报告/打印
无需用户干预即可打印PDF
本网站使用Cookie来帮助个性化内容,调整您的体验并在注册时保持登录状态。
继续使用本网站,即表示您同意我们使用cookie。
接受
了解更多…
最佳
底部