nicholas has asked for the wisdom of the Perl Monks concerning the following question:
Hello All,
How can I get the page and line count of MS-Word document. I am using win32::ole package.
Code example will be highly appritiated. I hope i will get the answer. Please ASAP
How can I get the page and line count of MS-Word document. I am using win32::ole package.
Code example will be highly appritiated. I hope i will get the answer. Please ASAP
Thanks Nicholaswhile(($object = $enum->Next)) { $para_temp++; $paragraph = $object->Range->{Text}; $allText .= $paragraph; chop $paragraph; unless ($paragraph eq '') { $paragraph_count++; } chomp $paragraph; @words = split /\s+/, $paragraph; $nwords += @words; @chars = split //, $paragraph; $nchars += @chars; }
Edited by Chady -- added code tags.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to get MS-Word Page count and line count?
by Zero_Flop (Pilgrim) on Mar 08, 2004 at 07:17 UTC | |
by Zero_Flop (Pilgrim) on Mar 08, 2004 at 08:12 UTC | |
by Zero_Flop (Pilgrim) on Mar 08, 2004 at 22:46 UTC | |
by nicholas (Novice) on Mar 09, 2004 at 06:36 UTC | |
by nicholas (Novice) on Mar 08, 2004 at 12:15 UTC | |
by nicholas (Novice) on Mar 08, 2004 at 07:29 UTC | |
Re: How to get MS-Word Page count and line count?
by jmcnamara (Monsignor) on Mar 08, 2004 at 22:38 UTC |
Back to
Seekers of Perl Wisdom