使用 Microsoft.Office.Interop.Word 程序集 [英] Using Microsoft.Office.Interop.Word assembly

查看:49
本文介绍了使用 Microsoft.Office.Interop.Word 程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须用c#做一个word文档编程.有没有办法在不安装 Microsoft Word 的情况下访问 Microsoft.Office.Interop.Word 程序集?我尝试安装 Office Primary Interop Assemblies 但它要求我先安装 Microsoft Office 包.

I have to do a word document programming in c#. Is there any way to access Microsoft.Office.Interop.Word assembly without installing Microsoft word? I tried to install Office Primary Interop Assemblies But it ask me install Microsoft Office package first.

推荐答案

您是否尝试过将 PIA Redistributable 用于您尝试使用的任何版本的 Office?

Have you tried the PIA Redistributable for whatever version of Office you are trying to work on?

例如,Office 2010 PIA 可再发行组件并未将 Office 列为一项要求(当然,这可能是系统要求"部分中的错误).

The Office 2010 PIA redistributable, for example, does not list Office as a requirement (but of course that could be an error in the System Requirements section).

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=938fe8ad-583b-4bd7-a345-23250dc15855#SystemRequirements

这篇关于使用 Microsoft.Office.Interop.Word 程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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