Tables in WORD

G

Guy Cohen

Hi all.

My VB application generates a Word document with a table using a template I
created (a simple Word document with automation fields (docVariable)).
When there are too many rows in the table - the extra table rows are printed
on the next page (the page is generated automatically).

My questions are:
1. How do I put the headers of the tables on each new page?
2. How do I put the "summary" after the last page/table part (the summary is
another docVariable I put right after the docVariable I use for the table -
but I want it to be after all the table parts (logical...))?

TIA
Guy
 
J

Jonathan West

Guy Cohen said:
Hi all.

My VB application generates a Word document with a table using a template I
created (a simple Word document with automation fields (docVariable)).
When there are too many rows in the table - the extra table rows are printed
on the next page (the page is generated automatically).

My questions are:
1. How do I put the headers of the tables on each new page?

Set the HeadingFormat proeprty of the first row(s) to True
2. How do I put the "summary" after the last page/table part (the summary is
another docVariable I put right after the docVariable I use for the table -
but I want it to be after all the table parts (logical...))?

I'm not 100% sure what you mean by this. If you're asking for a table
footer, then Word doesn't support that.
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Hi Guy,

For the "summary" insert a second table immediately after the first and
format the font of the paragraph mark that separates the tables to be
hidden. You will get a slightly thicker border between the two tables, but
if you remove the top border from the second table, you won't be able to
tell the difference.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
G

Guy Cohen

Thank you both

I used to put the summary/signature as a bottom header.
After I read Jonathan' reply I figured out I should put another docVariable
and maybe format it as a table :)

Guy

??"Doug Robbins - Word MVP - DELETE UPPERCASE CHARACTERS FROM EMAIL ADDRESS"
 

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