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
 
Top