<?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: Get the line counts from the Word Component</title>
	<atom:link href="http://www.ocxt.com/archives/94/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ocxt.com/archives/94</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: office viewer</title>
		<link>http://www.ocxt.com/archives/94#comment-117</link>
		<dc:creator>office viewer</dc:creator>
		<pubDate>Thu, 06 Nov 2008 10:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.ocxt.com/?p=94#comment-117</guid>
		<description>javascript:

document.OA1.Open( &quot;c:\\2007-07-3121.02ChatLog.rtf&quot;, &quot;Word.Document&quot;);
var objWord = document.OA1.ActiveDocument;
var objRange = objWord.Range();
var count = objRange.ComputeStatistics (0);
window.alert(count);</description>
		<content:encoded><![CDATA[<p>javascript:</p>
<p>document.OA1.Open( &#8220;c:\\2007-07-3121.02ChatLog.rtf&#8221;, &#8220;Word.Document&#8221;);<br />
var objWord = document.OA1.ActiveDocument;<br />
var objRange = objWord.Range();<br />
var count = objRange.ComputeStatistics (0);<br />
window.alert(count);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: office viewer</title>
		<link>http://www.ocxt.com/archives/94#comment-101</link>
		<dc:creator>office viewer</dc:creator>
		<pubDate>Fri, 17 Oct 2008 08:09:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.ocxt.com/?p=94#comment-101</guid>
		<description>You can use the VBA to get the line counts or total words in the open ms word document.
 
The follow is a vbscript to get the line count. 
 
Set objWord = OA1.ActiveDocument
Set myRange = objWord.Range   
Dim WordCount
WordCount = myRange.ComputeStatistics(1)
MsgBox WordCount &amp; &quot; words&quot;

About the ComputeStatistics method. 
Returns a statistic based on the contents of the specified range.
Constant value:
wdStatisticCharacters  3 
wdStatisticCharactersWithSpaces  5 
wdStatisticFarEastCharacters  6 
wdStatisticLines  1 
wdStatisticPages  2 
wdStatisticParagraphs  4 
wdStatisticWords  0</description>
		<content:encoded><![CDATA[<p>You can use the VBA to get the line counts or total words in the open ms word document.</p>
<p>The follow is a vbscript to get the line count. </p>
<p>Set objWord = OA1.ActiveDocument<br />
Set myRange = objWord.Range<br />
Dim WordCount<br />
WordCount = myRange.ComputeStatistics(1)<br />
MsgBox WordCount &#038; &#8221; words&#8221;</p>
<p>About the ComputeStatistics method.<br />
Returns a statistic based on the contents of the specified range.<br />
Constant value:<br />
wdStatisticCharacters  3<br />
wdStatisticCharactersWithSpaces  5<br />
wdStatisticFarEastCharacters  6<br />
wdStatisticLines  1<br />
wdStatisticPages  2<br />
wdStatisticParagraphs  4<br />
wdStatisticWords  0</p>
]]></content:encoded>
	</item>
</channel>
</rss>

