我们可以将Word文件转换为pdf吗 [英] Can we convert word file to pdf
本文介绍了我们可以将Word文件转换为pdf吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友,
我们可以在不安装任何插件的情况下通过C#代码将Word文件转换为pdf吗?
谢谢
Mohit Sharma
Hello Friends,
Can we convert word file to pdf through C# code without installing any plugin?
Thanks
Mohit Sharma
推荐答案
是.
阅读此讨论-如何以编程方式将Word文件转换为PDF? [ ^ ]
以及来自CodeProject的这篇文章-使用C#(和Office)从RTF/DOC文件创建PDF [ ^ ]
希望这会有所帮助!
Yes.
Read this discussion - How do I convert Word files to PDF programmatically?[^]
and this article from CodeProject - PDF creation using C# (and Office) from RTF/DOC files[^]
Hope this helps!
Hello Mohit,
参见 http://stackoverflow.com/questions/607669/how -do-i-convert-word-files-to-programmatically [
Hello Mohit,
See http://stackoverflow.com/questions/607669/how-do-i-convert-word-files-to-pdf-programmatically[^]
Having MS Word installed is enough.
Cheers
Andi
感谢Andi,
我已经尝试过您提供的链接中提供的此代码.但是,如果我们尚未安装SaveasPdf插件,则它将引发错误.但是我不想在我的代码中有任何依赖.您能告诉我而不安装任何插件以PDF格式保存Word文档吗?
谢谢亲爱的回复.
Thanks Andi,
I have already tried this code that is given in the link you provided. But if we have not installed SaveasPdf plugin then it will throw an error. But i don''t want any dependency in my code. Can you tell me without installing any plugin save word doc in PDF.
Thanks for the Reply dear.
这篇关于我们可以将Word文件转换为pdf吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文