Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Using OLE to view given Paragraph in MS Word Document

by Ray Smith (Beadle)
on Nov 22, 2011 at 15:53 UTC ( #939479=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Using OLE to view given Paragraph in MS Word Document
in thread Using OLE to view given Paragraph in MS Word Document

Your advice was spot on! This is what I was missing, to view the specified paragraph:

$paragraph = $paragraphs->Item( $i ); $paragraph->{Range}->Select(); # <<<<<Added
I appologize for not being clear. I have a simple application that uses Microsoft Word for user generated input source. My goal, which I can now approach with your help, is, when an error in this user input file is discovered, to bring up the source file with the view positioned to facilitate the user making required modifications to correct the error(s).

Thanks again for the help.


Comment on Re^4: Using OLE to view given Paragraph in MS Word Document
Download Code
Re^5: Using OLE to view given Paragraph in MS Word Document
by ricDeez (Scribe) on Nov 22, 2011 at 20:47 UTC

    I am glad to be of help. I am fairly new to Perl myself but have quite a bit of experience in developing MS Office automation applications. They are just more fun doing in Perl!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939479]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-10-21 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (98 votes), past polls