How do I align text in two Columns in Word?

Hi Team,

Thank you for your support…

Requirement :

How can we display data in two columns in Word document using Aspose ?
Output:

Thanks & Regards,
Lavanya.

@Lavanya_Jujjavarapu You can achieve this using TextColumns.SetCount method. Here is a simple code example:

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

builder.CurrentSection.PageSetup.TextColumns.SetCount(2);

for (int i = 0; i < 40; i++)
    builder.Writeln("This content will be displayed in two columns.");

doc.Save(@"C:\Temp\out.docx");

Thank you very much for your reply @alexey.noskov,It is showing like one rows not like columns exam.PNG (60.8 KB)

@Lavanya_Jujjavarapu Could you please attach your output document here for our reference? We will check it and provide you more information.
The code produces correct output on my side: out.docx (7.0 KB)

Thank you for support @alexey.noskov,…This is my out put documentaspose1.png (121.3 KB)

@Sanghamitra This is screenshot of your expected output. I mean the document generated by the code I have provided earlier on your side. @Lavanya_Jujjavarapu told the code does not produce the expected output. So I need the document generated on your side to analyze the issue.