Solved

extract rich text item into a html file

Posted on 2009-05-13
3
2,456 Views
Last Modified: 2013-12-18
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

0
Comment
Question by:davinder101
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 24380603
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?
0
 

Author Comment

by:davinder101
ID: 24381665
i am using C++ and export method is the member function of LNRichText Class in C Api of Lotus Notes
0
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 250 total points
ID: 24382707
I assume you have the documentation:
http://www-12.lotus.com/ldd/doc/tools/cplus/3.0/lncpp30.nsf

Did you try the sample IEXPORT program that is included in the toolkit?

The doc also says that there's the possibility to include an exportdll:
      Input, path and name information for export library file for a specific document type.

Here's what the User Guide says about exporting:
"To export rich text to a file type supported by your Notes client, call Export with the name (and location, if necessary) of the output file and cursors marking the beginning and end of the text you want to export."

When you look in the Notes Help database, under File types supported for Import and Export, you can indeed find the HTML type at the bottom. But there it says that export to HTML is not supported.

So, as far as I can see, what you want isn't there. Sorry...

You can however export to RTF, and convert that to HTML using Word, for example.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question