Repeat header row programmatically

P

packer_fan

I will be opening a word document from my website and creating the contents
of word dynamically. How do I set the table properties of a Header Row to
span pages and each row not to break across pages? I know how to do this
once I have word open but I need to set these properties from my web page!
Please help. Thanks
 
J

Jay Freedman

I will be opening a word document from my website and creating the contents
of word dynamically. How do I set the table properties of a Header Row to
span pages and each row not to break across pages? I know how to do this
once I have word open but I need to set these properties from my web page!
Please help. Thanks

Assuming you assign the return value of the .Tables.Add function to a
Table object named oTbl, you make the first row a header row by
executing

oTbl.Rows(1).HeadingFormat = True
 

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