Link to home
Start Free TrialLog in
Avatar of davinder101
davinder101

asked on

extract rich text item into a html file

Hi All
  I want to extract rich text item into a html file.
code is attached below, but it gives error.
so how can i export the rich text item into html file ?

Thanks in Advance

try
{
LNNoteSession.Init();
...GetDatabase("","","");
 
//Open database,Get a notes document notesDoc
notesDoc.GetItem("Body",&rt);//LNRichText rt;
 
rt.GetCursor(&startCursor);
rt.GetEndCursor(&endCursor);
...
 
rt.export("test.html",startCursor,endCursor,"HTML");
}
catch(){}

Open in new window

Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Is that Java?? Or C++? Or C#?? Using the C-API?

There are many examples available of how to interface with Notes. Can you start there? There's no such thing as an Export-method of a RichTextItem in Java, the GetItem seems wrong, and more.

Maybe it's easier if you open the database using a browser object, if that is possible?
Avatar of davinder101
davinder101

ASKER

i am using C++ and export method is the member function of LNRichText Class in C Api of Lotus Notes
ASKER CERTIFIED SOLUTION
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial