Solved

extract rich text item into a html file

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

This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

696 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