如何将Printing.PrintDocument对象转换为PDF和WordDocument [英] how To Convert Printing.PrintDocument object to PDF and WordDocument

查看:504
本文介绍了如何将Printing.PrintDocument对象转换为PDF和WordDocument的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友....


请告诉我如何将Printing.PrintDocument转换为PDF和WordDocument,因为ReportViewer提供了将文档导出到PDF和Word文档的选项.

Hi friends....


Please tell me how To Convert Printing.PrintDocument to PDF and WordDocument as ReportViewer provide option of exporting document to PDF and Word Document

推荐答案

对于PDF,您需要一个免费的库,例如格式为 iTextSharp [ Microsoft.Office.Interop .Word命名空间 [ ^ ].
For PDF you need a free library such as iTextSharp[^]. For Word documents you need to use the Microsoft.Office.Interop.Word Namespace[^].


这篇关于如何将Printing.PrintDocument对象转换为PDF和WordDocument的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆