将Microsoft Word转换为图像格式,如png,tif,jpg,bmp,... [英] Convert Microsoft Word to Image format such as png, tif, jpg, bmp, ...

查看:355
本文介绍了将Microsoft Word转换为图像格式,如png,tif,jpg,bmp,...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用c#.Net将Microsoft Office office文档转换为任何图片格式?

How i can convert microsoft office word document to any picture format with c# .Net?

推荐答案

1,搜索CodeProject以获取有关自动化MS Word的文章C#。这里有很多资源。



2.在CodeProject上搜索有关C#屏幕截图的文章。这里有很多资源,包括最近使用DirectX的资源(可能与你的情况无关)。



3.开始编码,试验,报告你的问题,结果和问题在这里。向我们展示一些代码(但不是太多)。
1, Search CodeProject for articles on "automating" MS Word from C#. There are many resources here.

2. Search CodeProject for articles on screen capture from C#. There are many resources here, including a recent one that uses DirectX (which may not relevant to your scenario).

3. Start coding, experiment, report your problems, results, and questions here. Show us some code (but not too much of it).


将Microsoft Word文档转换为位图图像几乎没有任何意义。更重要的是,没有预定义的方法来做,只是因为文档没有任何固定的视图。相同的文档看起来不同,取决于查看器的窗口大小,比例,视图选项,查看器和其他这样的因素。



你可以寻找屏幕截图,例如。



-SA
Converting of a Microsoft Word document to a bitmap image hardly makes any sense. More importantly, there is no predefined way to do it, just because the document does not have any fixed view. The same document looks differently depending on the sized of the window of the viewer, scale, view option, viewer and other factors like this.

You can look for screen capture, for example.

—SA


我同意Bill的观点。但是,如果您打算使用任何免费库将MS Word文档导出到JPG / Png,我认为这将是一个挑战!
I agree with Bill. However, if you are thinking to export a MS Word document to JPG/Png using any free library, I think that will be a challenge!


这篇关于将Microsoft Word转换为图像格式,如png,tif,jpg,bmp,...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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