 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to export Lotus Notes document to OpenOffice Writer document?</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-to-export-lotus-notes-document-to-openoffice-writer-document/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-export-lotus-notes-document-to-openoffice-writer-document/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 17:28:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: ts7578</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-export-lotus-notes-document-to-openoffice-writer-document/#comment-53178</link>
		<dc:creator>ts7578</dc:creator>
		<pubDate>Tue, 13 May 2008 17:49:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-53178</guid>
		<description><![CDATA[There is an API to OpenOffice document.
You&#039;ll find in the downloadable database that goes with this article the basis of the API:

http://drh02.eapps.com/eview/viewr6.nsf/e640f630a3361f84852568f600070fd3/d45c50d0566aa59a852572a5007376b0?OpenDocument&amp;Highlight=0,openoffice

To create a nice looking write document with the content of Notes document I would create a writer model document including fields label, titles and so on. At the places where the Notes data must be output, create bookmarks, and gave the same name than the sourceNotes item.

Then use a function looking like this one to trigger the substitution:

	Function setBookmarkValues(doc As NotesDocument) As Integer
		Dim vRange As Variant, vBookmark As Variant	, vCursor As Variant, vText As Variant
		Dim sFldName As String, sBkName As String
		Dim sVal As Variant
		Dim ix As Integer
		For ix = 0 To vBookmarks.count - 1
			Set vBookmark = vBookmarks.getByIndex(ix)
			sBkName = vBookmark.name
			If Not Iselement(sUsedFields(sBkName)) Then
			&#039; si présence _ dans signet, éliminer partie droite à partir de _			
				If Instr(sBkName, &quot;_&quot;) &gt; 0 Then
					sFldName = Left$(sBkName, Instr(sBkName, &quot;_&quot;) -1)
				Else
					sFldName = sBkName
				End If
				If doc.hasItem(sFldName) Then
					Set vText = vBookmark.Anchor.Text
					Set vCursor = vText .createTextCursorByRange(vBookmark.Anchor)
					sVal = doc.getItemValue(sFldName)(0)
					If sVal &lt;&gt; &quot;&quot; Then
						vCursor.String  = sVal
						sUsedFields(sBkName) = True						
					End If
				End If
			End If
		Next		
		setBookmarkValues = vBookmarks.count
	End Function

of cource there are many variables and initialisation code to have this code runs, but there is no enough place here to give enough details. Hope this will help you.]]></description>
		<content:encoded><![CDATA[<p>There is an API to OpenOffice document.<br />
You&#8217;ll find in the downloadable database that goes with this article the basis of the API:</p>
<p><a href="http://drh02.eapps.com/eview/viewr6.nsf/e640f630a3361f84852568f600070fd3/d45c50d0566aa59a852572a5007376b0?OpenDocument&#038;Highlight=0,openoffice" rel="nofollow">http://drh02.eapps.com/eview/viewr6.nsf/e640f630a3361f84852568f600070fd3/d45c50d0566aa59a852572a5007376b0?OpenDocument&#038;Highlight=0,openoffice</a></p>
<p>To create a nice looking write document with the content of Notes document I would create a writer model document including fields label, titles and so on. At the places where the Notes data must be output, create bookmarks, and gave the same name than the sourceNotes item.</p>
<p>Then use a function looking like this one to trigger the substitution:</p>
<p>	Function setBookmarkValues(doc As NotesDocument) As Integer<br />
		Dim vRange As Variant, vBookmark As Variant	, vCursor As Variant, vText As Variant<br />
		Dim sFldName As String, sBkName As String<br />
		Dim sVal As Variant<br />
		Dim ix As Integer<br />
		For ix = 0 To vBookmarks.count &#8211; 1<br />
			Set vBookmark = vBookmarks.getByIndex(ix)<br />
			sBkName = vBookmark.name<br />
			If Not Iselement(sUsedFields(sBkName)) Then<br />
			&#8216; si présence _ dans signet, éliminer partie droite à partir de _<br />
				If Instr(sBkName, &#8220;_&#8221;) &gt; 0 Then<br />
					sFldName = Left$(sBkName, Instr(sBkName, &#8220;_&#8221;) -1)<br />
				Else<br />
					sFldName = sBkName<br />
				End If<br />
				If doc.hasItem(sFldName) Then<br />
					Set vText = vBookmark.Anchor.Text<br />
					Set vCursor = vText .createTextCursorByRange(vBookmark.Anchor)<br />
					sVal = doc.getItemValue(sFldName)(0)<br />
					If sVal &lt;&gt; &#8220;&#8221; Then<br />
						vCursor.String  = sVal<br />
						sUsedFields(sBkName) = True<br />
					End If<br />
				End If<br />
			End If<br />
		Next<br />
		setBookmarkValues = vBookmarks.count<br />
	End Function</p>
<p>of cource there are many variables and initialisation code to have this code runs, but there is no enough place here to give enough details. Hope this will help you.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.021 seconds using memcached
Object Caching 267/273 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 18:35:56 -->