将 IBM Lotus Notes 文件转换为文本
如何将 .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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.
您可以通过选择视图中的所有文档,然后转到“编辑”>“导出”来轻松导出一些数据。将选定内容复制为表。然后只需将内容粘贴到 Excel 或文本文件中即可。
要访问视图中显示之外的数据,您可以尝试其他一些操作:
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: