How can I extract a specific table and copy from MS Word to Excel in Perl? -


i have ms word 2003 file contains several tables in , want extract specific table contents. example, tables coming under sections , want extract contents of table coming under section 6 alone , no other table contents, want copy contents new excel sheet formatting.

section 4
table data
table data
table data

section 5
table data
table data
table data

section 6
table data # table data extracted , imported new excel sheet
table data # table data extracted , imported new excel sheet
table data # table data extracted , imported new excel sheet

section 7
table data
table data
table data

unless thinking of using antiword, starting point perl module win32::ole, installed part of activestate perl. need start microsoft word application using ole, open document, @ sections object of document object, find section object section six, @ tables property of range property of section object, , find table object want in it.

copying excel sheet involves similar.

it's difficult write code example unless have document work with, i'm not going attempt that.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -