Fixed Size Table

T

Thierry Marneffe

Hello

I use C++ to automate Word. Here is the code to insert a table with 1 row
and 1 column

BOOL CAutoWordDlg::AddCoverPage( Selection WordSelection)
{

WordSelection.TypeParagraph();

Range WordRange = WordSelection.GetRange();

WordRange.Collapse( vtCollapseEnd);

Tables WordTables = WordSelection.GetTables();

Table WordTable = WordTables.Add( WordRange, 1, 1, vtFalse, vtTrue);
}

The parameters of the Add function allows the AutoFit of the table ...

OK but I would like to set a fixed size for this table, say 80% of the page
with and 80 % of the page height.

Is it possible to do this ?

Thanks for your help

Thierry
 

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