How notesrichtext prints in MS Word

Hi

I am not able to print the notesrichtext to MS word. I am writing the lotus script code in agent but it is not printing the notesrichtext. Please suggest what do to.

Code

Print |Content-Type:application/msword|

'Triggers the save/open prompt instead of embedding the spreadsheet in the browser

	Print |Content-Disposition: Attachment; filename="Report.doc"|

	Print |<HTML>|

	Print |<HEAD>|

	Print |<style>@page Section1 {margin:0.5in 0.5in 0.5in 0.5in}</style>| 

	Print | <style>div.Section1 { page:Section1; } </style>|

	Print |</HEAD>|

	Print |<BODY text="#000000" bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">|

Print |

|

	Print |<tr >|

	Print |<td><font face="Arial" size="3"><b>Other Publications</b></font></td>|

	Print |</tr>|

	Print |</table>|

	Print |<table cellpadding="2" cellspacing="0" width="99%" style="border-top-style: solid; border-top-width: 1;border-left-style: solid; border-left-width: 1; border-right-style: solid; border-right-width: 1; border-bottom-style: solid; border-bottom-width: 1">|		

	

	

	Print |<tr>|

	Print |<td width="100%" valign="top" >|+doc.other_Publications_inside+|</td>|

	Print |</tr>|

	Print |</table>|	

Print |

|

	Print |</BODY>|	

	Print |</HTML>|

other_Publications_inside is notesrichtextitem on the form. How should i print the text of the notesrichtextitem in the same format in the MS Word.

Please give me some suggestions.

Thanks

Subject: How notesrichtext prints in MS Word

Hello,

Use GetformattedText or GetUnformattedText method of richtext item class but this way you will only get plain text formatted or unformatted depending upon the method you choose. If you wish to preserve the exact contents, try using NotesRichTextNavigator.

Hope this helps…

bregds,

Munish Kaushik

Subject: How notesrichtext prints in MS Word

Do you want the plain text or do you want formatted (with HTML in this case) content depending on what is in the rich text? The former is easy, but the latter is amore complex problem that will likely involve DXL, API’s or third party products.