我正在尝试获取Mail,Calendar e.t.c的数据类型(正文格式)。身体。
以如下方式获取正文内容:
String Body = (string)((object[])docInbox.GetItemValue("Body"))[0];或
String Body = docInbox.GetFirstItem("Body").Text;我尝试使用以下命令:
String bodyFormat = ((object[])docInbox.GetItemValue("Body"))[0].GetType().ToString();但在本例中,我得到的是"System.String“value.But,实际上是:"Rich Text”。
发布于 2009-09-15 13:50:34
如果您试图获取"Body“项的Notes数据类型,则可以使用NotesItem类的type属性。例如:
...
dim itemBody as notesItem, nType as integer
set itemBody = doc.getItem ("Body")
nType = itemBody.Type
...RichText是1,文本是1280,数字是768,依此类推。Domino Designer Help有完整的值列表。
编辑:您可以找到类型值的完整列表here
发布于 2009-09-15 12:08:43
尝试:
NotesRichTextItem rtItem = docInbox.GetFirstItem("Body")
String body = rtItem.GetFormattedText(False, 0)
or
String body = rtItem.GetUnformattedText()发布于 2009-09-15 09:11:01
您现在通过GetItemValue("Body")获取值。有没有像这样的方法
GetItem("Body")其中包含此信息?
https://stackoverflow.com/questions/1426054
复制相似问题