保存文件的Word作为图片编程 [英] Saving Word File as a Picture Programmatically

查看:190
本文介绍了保存文件的Word作为图片编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想一个Word文档的第一页保存为图片。对于C#这样做有哪些方式?

I'd like to save the first page of a Word document as a picture. What methods are there for doing this with C#?

推荐答案

您可以打印Word文档XPS文档,在打开它WPF(.NET 3.5)应用程序和第一次内部固定页面对象转换为使用WPF框架的文件和成像功能的位图。 XPS文档打印机若您安装.NET框架3安装(也许3.5,我不知道)。

You can print the word document to an XPS document, open it in a WPF (.Net 3.5) app and convert the first internal FixedPage object to a bitmap using the document and imaging functionality of the WPF framework. The XPS document printer is available if you have the .Net 3 framework installed (maybe 3.5, I'm not sure).

这篇关于保存文件的Word作为图片编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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