CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Win32 Programming Help: Need help on getting paragraph values from a Word file (Win32::OLE): Edit Log



kuysal
New User

Jul 31, 2009, 2:15 AM


Views: 5830
Need help on getting paragraph values from a Word file (Win32::OLE)

Hey Guys,

I've newly started coding in Perl and I've some problems while reading lines from word files.

Lets assume that I have a line retrieved from a MS Word file and that is assigned to $prg:

My line format that I want to read in the word file is like:

4.1.12 Speed Heading and Time

I read that line with this code:


Code
 $prg->Range->Text


But it gets only the text inside the line. It doesn't get the level numbers on the left. I need to get the level numbers. I've been looking for a code on the net but unfortunately I couldn't find anything.

Thanks for your further help.


(This post was edited by kuysal on Aug 10, 2009, 1:13 AM)


Edit Log:
Post edited by kuysal (New User) on Aug 10, 2009, 1:13 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives