Hi!
Rekreativc wrote:
Also, how do I change font size for only one section? Currently I adjust the font with this code:
Code:
document.LastSection.LastParagraph.Format.Font.Size = 8;
You only change the font size for the last paragraph.
One method: change the font size of every paragraph in the section. You can do this when adding the text (I'd recommend this). You could enumerate the paragraphs in the section and change it later.
AddParagraph() returns the new paragraph and allows you to set the font size.
Another method (and I think the better way): create a new style for every section, use that style with every paragraph in the section, and set the font size of this paragraph as you need it.
You can create a style "SmallPrint" and use it in all sections that need it. You can create style "Section001", "Section002", ... if sections may look different.
Two tables side by side: create a table with two cells and place the tables in these cells.
IIRC the trick is adding a textframe to the cell and then adding a table to the textframe.
Table cells won't break over pages - so this will only work if both tables are small enough to fit on one page.