使用 Microsoft.Office.Interop.Word 程序集 [英] Using Microsoft.Office.Interop.Word assembly
问题描述
我必须用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).
这篇关于使用 Microsoft.Office.Interop.Word 程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!