打开 Office 程序集文件夹

发布于 2024-12-14 03:49:08 字数 484 浏览 2 评论 0原文

我在 google 上搜索“Open Office C#”,发现了一个经常出现的教程: http://www.opendocument4all .com/download/OpenOffice.net.pdf

问题在于这部分(pdf 的片段):

从 Visual Studio 窗口更改为资源管理器窗口。移至 CLI 程序集文件夹。您将在 OpenOffice 程序中找到它们 安装路径位于名为“Assembly”的文件夹中。在这个文件夹中你 应该会看到以下 .net 程序集。

我没有这个“程序集”文件夹。我导航到: C:\Program Files (x86)\OpenOffice.org 3

它根本不存在。我必须使用 C# 创建报告。

I googled "Open Office C#" and found a commonly reoccurring tutorial: http://www.opendocument4all.com/download/OpenOffice.net.pdf

The trouble is this portion (snippet from pdf):

Change from the Visual Studio window to a Explorer window. Move to the
CLI assemblies folder. You will find them in your OpenOffice program
installation path in the folder named “assembly”. In this folder you
should see the following .net assemblies.

I do not have this "assembly" folder. I navigated to:
C:\Program Files (x86)\OpenOffice.org 3

It simply is not there. I have to create reports using C#.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

酒儿 2024-12-21 03:49:08

根据OP上面的评论,目标是创建DOC或DOCX:

对于创建DOCX,有一个免费选项(来自 MS 的 OpenXML)可用...

用于创建较旧的 DOC 格式(在许多其他内容中,例如 Aspose.Words(商业 - 只是一个满意的客户,没有附属关系)

编辑 - 根据评论:

所有上述选项都独立于 Word 工作(即不需要在计算机上存在/安装 Office)。

As per comments above from the OP the goal is to create DOC or DOCX:

For creating DOCX there is a FREE option (OpenXML from MS) available...

For creating the older DOC format (among lots of other things there is for example Aspose.Words (commercial - just a happy customer, not affilliated).

EDIT - as per comment:

All above options work independently of Word (i.e. don't need Office present/installed on the machine).

自此以后,行同陌路 2024-12-21 03:49:08

我不确定 Yahia 明白你在问什么...

因为,我有同样的问题(我认为),我想我会分享我找到的解决方案:

在版本 3.x+ 中,放置了 cli_* dll在 GAC 中并且(据我所知)无法从 VisualStudio 项目访问。您必须从 openofficeorg1.cab 文件中提取它们(使用 RAR、WinZip、7z 等)。

以下链接更详细地介绍了该主题:
http://blog.nkadesign.com/2008/net-working- with-openoffice-3/

顺便说一句,当我(成功)这样做时,我发现了 6 个这样的 cli_* dll。

值得一提的是,当我看到这个花絮时,我已经删除了安装过程中创建的初始安装文件夹,因此我必须卸载 OpenOffice,然后重新安装才能恢复该文件夹。之后就很容易了。

希望这对您有所帮助。

I'm not sure Yahia understood what you were asking...

As, I had the same issue (I think), I thought I would share the solution I found:

In version(s) 3.x+ the cli_* dlls are placed in the GAC and (afak) inaccessible from a VisualStudio project. You have to extract them from the openofficeorg1.cab file (using RAR, WinZip, 7z, whatever).

Here is a link that goes into more detail covering the topic:
http://blog.nkadesign.com/2008/net-working-with-openoffice-3/

BTW, when I did this (successfully), I found 6 such cli_* dlls.

It's worth mentioning that when I came across this tidbit, I had already deleted the initial installation folder that was created during the setup, so I had to uninstal OpenOffice and then reinstall to get that folder back. After that it was easy.

Hope this was of some help.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文