<?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: Add some text at the end of Word document</title>
	<atom:link href="http://www.ocxt.com/archives/76/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ocxt.com/archives/76</link>
	<description>ActiveX document container for hosting Office documents and PDF (including Adobe PDF, Microsoft Word, Microsoft Excel, Microsoft PowerPoint, Microsoft Project and Microsoft Visio documents)</description>
	<lastBuildDate>Sat, 19 Nov 2011 03:49:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: cathy</title>
		<link>http://www.ocxt.com/archives/76#comment-70</link>
		<dc:creator>cathy</dc:creator>
		<pubDate>Fri, 11 Apr 2008 12:02:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.ocxt.com/archives/76#comment-70</guid>
		<description>VBScript:
Sub CreateDoc()
OA1.Open &quot;C:\\1.doc&quot;
Set objWord = OA1.ActiveDocument
objWord.Application.Selection.EndKey 6
OA1.WordInsertBreak 6
OA1.WordInsertPicture &quot;C:\\1.bmp&quot;, False
End Sub

 </description>
		<content:encoded><![CDATA[<p>VBScript:<br />
Sub CreateDoc()<br />
OA1.Open &#8220;C:\\1.doc&#8221;<br />
Set objWord = OA1.ActiveDocument<br />
objWord.Application.Selection.EndKey 6<br />
OA1.WordInsertBreak 6<br />
OA1.WordInsertPicture &#8220;C:\\1.bmp&#8221;, False<br />
End Sub</p>
<p> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: office viewer</title>
		<link>http://www.ocxt.com/archives/76#comment-69</link>
		<dc:creator>office viewer</dc:creator>
		<pubDate>Fri, 11 Apr 2008 10:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ocxt.com/archives/76#comment-69</guid>
		<description>Javascript: insert a picture in the end of Word Document
function InsertPicture()
{
document.all.OA1.Open(&quot;C:\\1.doc&quot;);
var objWord = document.all.OA1.ActiveDocument;
var dd = objWord.Application.Selection.EndKey(6);
document.all.OA1.WordInsertBreak(6);
document.all.OA1.WordInsertPicture(&quot;C:\\test.bmp&quot;, true);
}</description>
		<content:encoded><![CDATA[<p>Javascript: insert a picture in the end of Word Document<br />
function InsertPicture()<br />
{<br />
document.all.OA1.Open(&#8220;C:\\1.doc&#8221;);<br />
var objWord = document.all.OA1.ActiveDocument;<br />
var dd = objWord.Application.Selection.EndKey(6);<br />
document.all.OA1.WordInsertBreak(6);<br />
document.all.OA1.WordInsertPicture(&#8220;C:\\test.bmp&#8221;, true);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: office viewer</title>
		<link>http://www.ocxt.com/archives/76#comment-68</link>
		<dc:creator>office viewer</dc:creator>
		<pubDate>Fri, 11 Apr 2008 09:58:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.ocxt.com/archives/76#comment-68</guid>
		<description>Javascript: insert a signature in the end of Word Document
function CreateDoc()
{
document.all.OA1.Open(&quot;C:\\1.doc&quot;);
var objWord = document.all.OA1.ActiveDocument;
var dd = objWord.Application.Selection.EndKey(6);
document.all.OA1.WordInsertBreak(6);
document.all.OA1.WordInsertText (&quot;Insert signature&quot;);
}</description>
		<content:encoded><![CDATA[<p>Javascript: insert a signature in the end of Word Document<br />
function CreateDoc()<br />
{<br />
document.all.OA1.Open(&#8220;C:\\1.doc&#8221;);<br />
var objWord = document.all.OA1.ActiveDocument;<br />
var dd = objWord.Application.Selection.EndKey(6);<br />
document.all.OA1.WordInsertBreak(6);<br />
document.all.OA1.WordInsertText (&#8220;Insert signature&#8221;);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: office viewer</title>
		<link>http://www.ocxt.com/archives/76#comment-63</link>
		<dc:creator>office viewer</dc:creator>
		<pubDate>Sun, 30 Mar 2008 02:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.ocxt.com/archives/76#comment-63</guid>
		<description>We want to insert the text at the end of the word document.

The function OA1.WordInsertText val is inserting the text but at cursur
location, how do I move the cursor to end of the document and insert the
text.

Solution:

document.all.OA1.Open(&quot;C:\\test.doc&quot;);
var objWord;
objWord = new Object(document.all.OA1.ActiveDocument);
//objWord.Content.Text = &quot;This was added by Automation&quot;
var dd;
dd = objWord.Application.Selection.EndKey 6;
document.all.OA1.WordInsertBreak 6;
document.all.OA1.WordInsertText (&quot;Insert signature&quot;);</description>
		<content:encoded><![CDATA[<p>We want to insert the text at the end of the word document.</p>
<p>The function OA1.WordInsertText val is inserting the text but at cursur<br />
location, how do I move the cursor to end of the document and insert the<br />
text.</p>
<p>Solution:</p>
<p>document.all.OA1.Open(&#8220;C:\\test.doc&#8221;);<br />
var objWord;<br />
objWord = new Object(document.all.OA1.ActiveDocument);<br />
//objWord.Content.Text = &#8220;This was added by Automation&#8221;<br />
var dd;<br />
dd = objWord.Application.Selection.EndKey 6;<br />
document.all.OA1.WordInsertBreak 6;<br />
document.all.OA1.WordInsertText (&#8220;Insert signature&#8221;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

