Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Lotus Notes API';s(也使用C+;+;库)来获取HTML正文格式_C#_Email_Lotus Notes - Fatal编程技术网

C# Lotus Notes API';s(也使用C+;+;库)来获取HTML正文格式

C# Lotus Notes API';s(也使用C+;+;库)来获取HTML正文格式,c#,email,lotus-notes,C#,Email,Lotus Notes,您能告诉我,有没有办法使用lotus Domino对象(C#中的COM库)在lotus notes中提取HTML正文内容(以内联图像作为附件) 例如:(我试过下面的代码) 当我得到str_dxlContent中的内容时,它是xml格式的 但仍然在正文中,我无法获得它的正确格式,如字体大小、颜色等 我也使用了Lotus Notes C++库,但API的HTML体不会被格式化。 < P>在Lotus Notes和Domino的最近版本中,NoteDebug类中有一个转换TimeTimeMy方法。使用

您能告诉我,有没有办法使用lotus Domino对象(C#中的COM库)在lotus notes中提取HTML正文内容(以内联图像作为附件)

例如:(我试过下面的代码)

当我得到str_dxlContent中的内容时,它是xml格式的 但仍然在正文中,我无法获得它的正确格式,如字体大小、颜色等


我也使用了Lotus Notes C++库,但API的HTML体不会被格式化。

< P>在Lotus Notes和Domino的最近版本中,NoteDebug类中有一个转换TimeTimeMy方法。使用代码CONVERT\u RT\u TO\u HTML(value=2)调用它应该会导致Body字段从富文本转换为包含HTML的MIME部分。有关文档,请参阅

我不能告诉你的是,这个方法是否可以通过COM类使用。IBM不一定通过该特定接口公开其所有对象方法。此外,转换是不完美的,所以即使它可以通过COM接口使用,我也不能确定它是否能满足您的需要

// p_objLotesNotesSession in this session i have got the database of one sample nsf that contains one mail with HTML Body and inline images. 

try           
{

obj_dxlExporter = p_objLotesNotesSession.CreateDXLExporter();

obj_dxlExporter.ConvertNotesbitmapsToGIF = true;

obj_dxlExporter.OutputDOCTYPE = false;


str_dxlContent = obj_dxlExporter.Export(docMailDoc);