One Table per page with Row Headers

Y

YARG

Does anyone know how to create a new table per page in Word, applying
the table header format from the first table?

The way the developer has done it at the moment is to have one big
table but sadly on some reports the table has over 11000 rows which on
creation get's progressively slower!

I know for a single table you can apply the HeadingFormat to a row and
word will duplicate the row on each soft page break but is there any
way to do this for each table ( without writing something to hold a
reference to the headers of table 1 ), allowing for a varied row
height??

Appreciate any help you can give.

Regards

Steve
 
S

Stephen Gray

Sorry I forgot to say, the code has been written in VB6, using the Word
Object.

Regards

Steve
 
D

Doug Robbins

If you put the table header in the header of the document and format the
font of the pargraph mark after that table and remove the bottom border from
the table, you can get the table in the header and that in the mainbody of
the document to appear as one. That way, you could split the tables in the
body of the document and still have the same table header "appear" for each
table.
--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
S

Stephen Gray

Thanks Doug,

Yeah that's an idea, I'll try that if there isn't a "table only" option
because the other problem I have is trying to work how to create a
table on each new page. For example, I can add a row and if that row
pushes the table to page 2, I can remove it and then create a new
table. The problem comes when the row formatting is applied which can
make the row small and through the whole logic out of the window. I
guess I could apply the formatting first, and then see if it goes over
a page, if it does remove it, create the new table with a row and
reapply the formatting to that row.

Thanks again Doug, sadly I don't know too much about Word!

Best Regards

Steve
 
J

Jay Freedman

Hi Steve,

Create a template for all new documents of this type. In the template,
create an autotext entry consisting of an empty table formatted the
way you want, including the HeaderRow setting. Write the VB to insert
this autotext entry each time it needs to start a new table.

If you need some help with the coding, post at least the part of the
program that starts a new table, so we have something to work with.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top