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.
Back to
Seekers of Perl Wisdom