We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

2 textcolumns and 1 textcolumn on one page

Help please how can I use 2 textcolumns and 1 textcolumn on one page

Help please!!

@gamx81

Thanks for your inquiry. Please check following sample code snippet. Hopefully it will help you to accomplish the task.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

TextColumnCollection columns = builder.PageSetup.TextColumns;
columns.LineBetween = true;
columns.EvenlySpaced = true;
columns.SetCount(2);

builder.Writeln("column 1.");
builder.InsertBreak(BreakType.ColumnBreak);
builder.Writeln("column 2.");

builder.InsertBreak(BreakType.SectionBreakContinuous);

columns = builder.PageSetup.TextColumns;
columns.SetCount(1);

builder.Writeln("paragraph in new section");

doc.Save("out.docx");

Best Regards,

Super! Thank you so much!