Solved

extract rich text item into a html file

Posted on 2009-05-13
3
2,448 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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