Hi
Please give me some sample code to create several tables at runtime on a page.
My problems:
1. The table is always wider than the Paper, how do I set the Table width, or is there only the rigth Border line missing?.
By default the tabe will be as wide as the text area. You can use CurrAttr.SetTableLeftRight to set left and right margins to shrink the table.
2. I need two header lines, how do I remove the separating horizontal border line between them? If I have some text that should be outside and below the grid it always get into one of the last field.
You can remove the blLeft and blRight borders from the cells.
ActiveParagraph.Border.LineType contains alls border switches.
>>3. How do I end one table and start an other one with some vertical space in between?<<
Create a new paragraph after the table with InputString(#13)
>>4. Is there a way to set the column width, or do I have to set the width for each single cell?<<
Usually it is easier to use FastAddTable to create a table with all properties. See example in manual. The PCWidth parameter is measuerd in 1/255 - this means % * 255
WPTools Version 5 allows it to create tables in an object oriented way.
Julian Ziersch