创建Word文档和.NET应用程序添加图片 [英] Create word document and add image from .NET app

查看:143
本文介绍了创建Word文档和.NET应用程序添加图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要产生word文档(从一个模板或东西)和在特定位置插入的图像的方式。有没有人有最好的方法的指针做到这一点?

I need a way of generating a word document (from a template or something) and inserting an image at a specific place. Does anyone have any pointers on the best way to do this?

我的工作所用的办公自动化在.NET 1.1几年前的一个项目,这是真的难以形容很差。我假设OA或者已改善或已superceeded一个更好的解决办法,但我不会在谷歌找到很多的建议。

I worked on a project that used Office Automation in .NET 1.1 a few years ago, and it was really unspeakably poor. I'm assuming OA has either been improved or been superceeded by a better solution, but I'm not finding much advice on google.

修改澄清,这将是一个Web或SharePoint服务器上运行的

Edit to clarify, this will be running on a web or sharepoint server

推荐答案

另外,如果你不需要生成word文档,将与之前的版本的Word 2007年的工作,你可以使用<一个href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c6e744e5-36e9-45f5-8d8c-331df206e0d0"相对=nofollow> OpenXML的SDK 创建Word文档。它在我的比OA使用意见所有被管理的code和比较容易的方式。

Alternatively, and if you do not need to generate word documents that will work with versions prior to Word 2007, you could use the OpenXML SDK to create your Word Document. It's all managed code and way easier in my opinion to use than OA.

这篇关于创建Word文档和.NET应用程序添加图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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