Python and word question

nemir nemir.remove at hotmail.spamenot.com
Wed Sep 27 22:11:06 EDT 2000


hi there.

I am creating tables in word with python, and am wondering how to do 
something.

Let me elaborate a little.   I create a base table class, then create 
anther class to define stuff from it (such as number of fields in the 
table, titles for each field in the header row)

I use regular expressions (sorry Aahz, I couldn't see any other way.  I am 
still veryvery green to programming and I have these largish text files ful 
of similar lines that I need to pull out and put into tables) to select 
which lines from a (largish) text file are relevent to the table, then sort 
out which elements of each line belong in which field in my table.

It (more or less) works great.

What I want to do though, is to make a sub heading in each table based on 
the first relevent field.  This subheading would need to be one cell that 
would take the entire width of the table.  It would need to have bold 
lettering, and need to be a different shade to the data cells (37.5% grey)

The requirements for this are pretty simple and easy to do by hand, but the 
point of the excercise is to automate everything.  


I am presently using "Professional" tables (I think it is #37 but I don't 
have my code handy here to confirm).

I hope this all makes sense.

In any case.  Any input or advice would sure be welcome.

Thanks!

Nemir



More information about the Python-list mailing list