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
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
par.ASet(WPAT_BOXWIDTH, WPCentimeterToTwips(15));
use WPAT_BoxMarginLeft to set left offset.
par is the result value of TableAdd
Julian
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;