如何使用LotusScript从Notes导出Rich Text字段? [英] How to export Rich Text fields as HTML from Notes with LotusScript?

查看:684
本文介绍了如何使用LotusScript从Notes导出Rich Text字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开展数据迁移任务,我必须将一个有点大的Lotus Notes应用程序导出到一个博客平台。我的第一个任务是将文章从Lotus Notes导出为CSV文件。



我在LotusScript中创建了一个代理将数据导出为CSV文件。我使用这个 IBM DeveloperWorks论坛帖子。它基本上做这个工作。但是,Rich Text字段的内容将被剥离任何格式。这不是我想要的,我希望Rich Text字段以HTML形式呈现。



GetItemValue的方法方法明确指出文本呈现为纯文本。所以我开始研究一些可以检索HTML的东西。我在IBM文章中找到了NotesMIMEEntity类和一些示例代码。如何访问使用LotusScript的富文本字段中的HTML



但是对于上述文章中描述的技术,Rich Text字段需要具有将内容存储为HTML和MIME。而我的Lotus Notes数据库并不是这样。我试图在有关领域设置财产,但没有做到这一点。



是否可以使用NotesMIMEEntity并在添加内容后设置将内容作为HTML和MIME存储属性,以导出HTML呈现的字段? / p>

或者我可以选择将Notes数据库的Rich Text字段作为HTML导出?



奖金信息: m使用IBM Lotus Domino Designer 8.5版

解决方案

我建议您查看Midas的Rich Text LSX( http://www.geniisoft.com/showcase.nsf/MidasLSX



我没有亲自使用过,但从几年前我记得他们是使用Rich Text的最佳选择。对于NotesMIMEEntity类,我不相信有一种方法可以将RichText转换为MIME,只有MIME到RichText(或保留文档中的MIME以发送电子邮件)。


I'm working on a data migration task, where I have to export a somewhat large Lotus Notes application into a blogging platform. My first task was to export the articles from Lotus Notes into CSV files.

I created a Agent in LotusScript to export the data into CSV files. I use a modified version of this IBM DeveloperWorks forum post. And it basically does the job. But the contents of the Rich Text field is stripped of any formatting. And this is not what I want, I want the Rich Text field rendered as HTML.

The documentation for the GetItemValue method explicitly states that the text is rendered into plain text. So I began to research for something that would retrieve the HTML. I found the NotesMIMEEntity class and some sample code in the IBM article How To Access HTML in a Rich Text Field Using LotusScript.

But for the technique described in the above article to work, the Rich Text field need to have the property "Store Contents as HTML and MIME". And this is not the case with my Lotus Notes database. I tried to set the property on the fields in question, but it didn't do the trick.

Is it possible to use the NotesMIMEEntity and set the "Store Contents as HTML and MIME" property after the content has been added, to export the field rendered as HTML?

Or what are my options for exporting the Notes database Rich Text fields as HTML?

Bonus information: I'm using IBM Lotus Domino Designer version 8.5

解决方案

I'd suggest looking at Midas' Rich Text LSX (http://www.geniisoft.com/showcase.nsf/MidasLSX)

I haven't used the personally, but I remember them from years ago being the best option for working with Rich Text. I'd bet it saves you a lot of headaches.

As for the NotesMIMEEntity class, I don't believe there is a way to convert RichText to MIME, only MIME to RichText (or retain the MIME within the document for emailing purposes).

这篇关于如何使用LotusScript从Notes导出Rich Text字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆