将 IBM Lotus Notes 文件转换为文本

发布于 2024-11-01 22:08:12 字数 223 浏览 3 评论 0原文

如何将 .nsf Lotus 文件转换为文本文件?我想编写一个java程序来读取我系统上的.nsf文件。我已经简单地尝试过,但它显示非英语字符,他们有什么方法可以正常访问它们。

编辑:

该代码位于.net中并使用任何服务器的会话,我只想通过java读取.nsf文件而不创建任何服务器的会话事实上我有.nsf数据库。我只是想读取一个文本文件。如果有办法用javacc解析.nsf,那就更好了......

How can I convert an .nsf lotus file to a text file? i want to write a java program to read .nsf file which is on my system. i have tried it simply but it is showing non english character is their any way to get access them normaly.

EDIT:

That code is in .net and using any server's session, I just want to read .nsf file by java without creating any server's session in fact i have .nsf database. i just want to read as a text file.if there a way to parse .nsf with javacc,it would be better enough......

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

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

发布评论

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

评论(2

坚持沉默 2024-11-08 22:08:12

Lotus Notes 数据库充满了专有的设计组件。假设您只想导出数据,则需要编写一个代理(也称为批处理),它会查看数据库中的所有文档,然后将所有字段导出到纯文本文件中。

如果您喜欢 XML,您也可以以该格式导出数据,但同样,您需要为此编写一个代理。

或者,Lotus Notes 中有一些用于导出数据的基本内置机制,但这仅限于从视图运行它们。视图不一定能获取所有文档。不过,您可以设计一个视图来做到这一点。

如果数据库的大小不是很大(少于 200k 文档),您可以创建列出要导出的所有列的视图,并且具有“Select @All”的视图公式将为您提供所有文档。然后,可以找到从视图中获取数据的“最快”方法 此处使用简单的导出程序。

还有导出富媒体的问题,你可以看看这里那。

lotus notes database is full of proprietary design components. Assuming you just want to export the data, you will need to write an agent, (aka batch process), that would look at all documents in the database and then export all the fields into a plain text file.

If you're into XML, you can export data in that format as well, but again, you will need to write an agent for that.

Alternatively, there are some basic builtin mechanisms in Lotus Notes to export data but this is restricted to running them from views. Views do no necessarily get all the documents. You can design a view to do that though.

Providing the size of the database is not extremely large, (less than 200k documents), you can create view listing all the columns you want to export and a view formula that has "Select @All", will give you all documents. Then, the "quickest" way to get data out from a view can be found here using simple export procedure.

There is still the issues of exporting rich media, you can have a look here for that.

演多会厌 2024-11-08 22:08:12

您可以通过选择视图中的所有文档,然后转到“编辑”>“导出”来轻松导出一些数据。将选定内容复制为表。然后只需将内容粘贴到 Excel 或文本文件中即可。

要访问视图中显示之外的数据,您可以尝试其他一些操作:

  • 使用 NotesSQL 驱动程序连接到数据
  • 通过 COM api(使用 Java、C#、VB 等)连接
  • 在 Lotus Notes 中创建一些视图请准备好您需要的数据,并使用我上面的建议。
  • 安装和我的导出到 Excel 应用程序< /a>

You can export some data easily by selecting all the documents in a view, and then going to Edit > Copy Selected As Table. Then just paste the content into Excel or a text file.

To access the data beyond what is showing in a view, you can try a few other things:

  • Connect to the data using the NotesSQL driver
  • Connect via the COM api (using Java, C#, VB, etc)
  • Create some views in Lotus Notes that DO have the data you need, and use my recommendation above.
  • Install and and my Export to Excel application
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文