如何将 .nsf 莲花文件转换为文本文件?我想编写一个 java 程序来读取我系统上的 .nsf 文件。我已经简单地尝试过,但它显示非英文字符是他们正常访问它们的任何方式。
编辑:
该代码在 .net 中并使用任何服务器的会话,我只想通过 java 读取 .nsf 文件而不创建任何服务器的会话,事实上我有 .nsf 数据库。我只想读取文本文件。如果有办法用 javacc 解析 .nsf,那就更好了......
如何将 .nsf 莲花文件转换为文本文件?我想编写一个 java 程序来读取我系统上的 .nsf 文件。我已经简单地尝试过,但它显示非英文字符是他们正常访问它们的任何方式。
编辑:
该代码在 .net 中并使用任何服务器的会话,我只想通过 java 读取 .nsf 文件而不创建任何服务器的会话,事实上我有 .nsf 数据库。我只想读取文本文件。如果有办法用 javacc 解析 .nsf,那就更好了......
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.
您可以通过选择视图中的所有文档轻松导出一些数据,然后转到“编辑”>“将所选内容复制为表格”。然后只需将内容粘贴到 Excel 或文本文件中。
要访问视图中显示的数据之外的数据,您可以尝试其他一些操作: