Lotus Notes 富文本字段转 RTF 文件 - VB

发布于 2024-08-16 09:18:21 字数 224 浏览 9 评论 0原文

我正在将数据从 Lotus Notes 迁移到另一种不支持富文本字段的软件。我正在尝试编写一个 VB 2005 程序,它将获取找到的任何富文本字段并将它们放入 RTF 文件中 - 该文件将作为新软件中的附件上传。

我无法让程序将富文本格式或对象转为 RTF 文件,只能转为纯文本。我已经尝试了使用 COM 库来获取这些对象的所有方法,但没有成功。

有什么想法或建议吗?

先感谢您 布莱恩

I am doing a data migration from Lotus notes to another type of software that does not support Rich Text Fields. I am trying to write a VB 2005 program that will take any rich text fields that are found and place them into an RTF file - which will be uploaded as an attachment in the new software.

I cannot get the program to take the rich text formating or objects to the RTF file, only the plain text. I have tried everything under the sun using the COM library to get these objects out to no avail.

Any ideas or suggestions?

Thank you in advance
Bryan

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

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

发布评论

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

评论(2

十级心震 2024-08-23 09:18:21

有一个未记录的 C api 调用“ExportRTF”。 Julian Robichaux 在此处提供了在数据库中使用它的示例:

http://www.nsftools .com/tips/NotesTips.htm#rtfexport

“这是我用一些代码编写的数据库,允许您将 Notes 富文本字段中的信息导出到 RTF 文件,同时保留大部分或全部富文本它还演示了如何将多个内容写入单个 RTF 文件(包括多个富文本字段)(如果您有兴趣的话)此外,所涉及的技术应该允许您导出更大的富文本字段。大小超过 64k”

There is an undocumented C api call "ExportRTF". Julian Robichaux has an example of using it in a database here:

http://www.nsftools.com/tips/NotesTips.htm#rtfexport

"Here's a database I wrote with some code that allows you to export the information in a Notes rich text field to an RTF file, while retaining most or all of the rich text field formatting. It also demonstrates how to write multiple things to a single RTF file (including multiple rich text fields), if that's something you're interested in doing. Additionally, the techniques involved should allow you to export rich text fields that are greater than 64k in size "

悲凉≈ 2024-08-23 09:18:21

Notes 富文本结构是专有的,您无法将 Notes 富文本项目直接导出到 Windows 富文本格式的文件中。 Notes 可以以 HTML/MIME 格式(而不是专有格式)存储富文本字段,然后您可以将其导出到文件并作为新软件中的附件附加为 .htm 文件(如果满足要求)您的要求)。如果您有兴趣,可以查看此 Stack Overflow 问题的答案中的一些详细信息:

如何使用 LotusScript 将富文本字段从 Notes 导出为 HTML?

The Notes rich-text structure is proprietary and you will not be able to directly export a Notes rich-text item into a Windows rich-text formatted file. It is possible to have Notes store rich text fields in HTML/MIME format (rather than the proprietary format), which you could then export to a file and attach as a .htm file as an attachment in your new software (if that would meet your requirements). If you are interested, there are some details in answers to this Stack Overflow question:

How to export Rich Text fields as HTML from Notes with LotusScript?

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