WPCubed Product Support

table width

I am creating a table as follows

memDoc.BeginTable('LINEITEM', 0, 0, 0);
par := memDoc.TableAdd(1, cdsReWrite2.recordcount + 1, [wptblActivateBorders], nil, AddInvoiceCell);
memDoc.EndTable;

How does one set the width of the table? Thanks

#1 ♥ 0
4k Views 2 users read 1 min
support

par.ASet(WPAT_BOXWIDTH, WPCentimeterToTwips(15));

use WPAT_BoxMarginLeft to set left offset.

par is the result value of TableAdd

Julian

#2 ♥ 0

I have tried the following but it does not affect the width or the left offset. What am I doing wrong? Thanks

memDoc.BeginTable('LINEITEM', 0, 0, 0);
par := memDoc.TableAdd(1, cdsReWrite2.recordcount + 1, [wptblActivateBorders], nil, AddInvoiceCell);
par.ASet(WPAT_BOXWIDTH, WPCentimeterToTwips(15)); // controls width of table
par.ASet(WPAT_BoxMarginLeft,WPCentimeterToTwips(4)); // left margin
memDoc.EndTable;

#3 ♥ 0
This category is archived. No new posts are possible.