What is the best way to change number of columns in a document from page to page? I have a document that will change back and forth between 2 columns and 3 columns. It seems when I use this command
builder.PageSetup.TextColumns.SetCount(2);
It sets the column count to 2 throughout the document, where what I need is to change it back and forth.
Any suggestions
Hi David,
Thanks for your inquiry.
Columns are defined per section in a document, so for each page in your document you need to start a new section. Please see the code below for an example.
builder.PageSetup.TextColumns.SetCount(2);
// Add content
builder.InsertBreak(BreakType.SectionBreakNewPage);
builder.PageSetup.TextColumns.SetCount(3);
// Some more content.
Thanks,