Solved

extract rich text item into a html file

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Email Message Background Color 4 125
Lotus notes email code 13 90
Event in Notes Form after open and visible 10 217
Lotus Notes Mailbox (Mail Forwarding) 9 40
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…
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

22 Experts available now in Live!

Get 1:1 Help Now