Additional paragraph with column break

Hi,

Im trying to get a column break. I tried

builder.InsertBreak(BreakType.ColumnBreak)

and in the doc I get the break plus a new paragraph at the top of the second column.

This is a problem because it causes a vertical mis-alignment between the top names in the 2 columns.

Try to compose a document in MS Word showing the desirable results and I will help you to achieve the same results using Aspose.Words.

Attached is the sample doc. Thanks for the help

B

As far as I understand, the attached document shows the problem. But I have asked you to try and make the same document in MS Word without the problem. I have tried this myself but it seems not possible. The next column always starts with the paragraph. I could not find a way to make it start with the table. So this seems to be the feature of MS Word and not the defect in Aspose.Words.

Please let me know if I am missing something here.

Best regards,

attached is a document that i created in ms word 2003 sp 2 that shows how i would like the columns to work when i insert a column break

thanks

B

Ok, but look - that is not a problem to start second column with text in Aspose.Words. For example, the following code does exactly this:

Document doc = new Document();

DocumentBuilder builder = new DocumentBuilder(doc);

doc.FirstSection.PageSetup.TextColumns.SetCount(2);

builder.Writeln("Some lengthy text is here. Some lengthy text is here. Some lengthy text is here. Some lengthy text is here. Some lengthy text is here.");

builder.InsertBreak(BreakType.ColumnBreak);

builder.Writeln("Some lengthy text is here. Some lengthy text is here. Some lengthy text is here. Some lengthy text is here. Some lengthy text is here.");

It is a problem to make the second column start with table. Aspose.Words cannot do this, and, as far as I can see, MS Word is not capable of doing it too.

Regards,

i see exactly what youre saying. ill work around using the tables for formatting within the column

thanks

brian