Solved

extract rich text item into a html file

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now