Free Support Forum - aspose.com

ParagraphFormat.Alignment doesn't work

Hi,



my alignment instructions are comletely ignored, any text is left aligned. Here is my small test procedure:



Private Sub asposeTest

Dim v_doc As New Aspose.Word.Document

Dim v_builder As DocumentBuilder = New DocumentBuilder(v_doc)



v_builder.InsertParagraph()

v_builder.Writeln("")

v_builder.ParagraphFormat.Alignment = ParagraphAlignment.Center

v_builder.Writeln(“Zentriert”)

v_builder.ParagraphFormat.Alignment = ParagraphAlignment.Right

v_builder.Writeln(“rechts”)

v_builder.InsertParagraph()

v_builder.ParagraphFormat.Alignment = ParagraphAlignment.Left

v_builder.InsertParagraph()

v_builder.Writeln(“links”)



v_doc.Save(“C:\Temp\Aspose\Align.doc”)



End Sub



I also tried the demo example DocumentBuilderDemo.vb and it doesn’t work either.

I opened the file with Word 2000, SR1.



Hildegard

Hi,

Thank you for your interest in Apsose.Word.

We are aware of this issue, it was fixed in one of the previous versions of Aspose.Word. Please make sure you are using the most recent one.

Hi,



I downloaded the msi file just 2 weeks ago; the dll’s version is 3.1.0.0, dating from the 16th august. Is there a newer one?



Hildegard

Sure, we recently released Aspose.Word 3.2 and your issue seems to be fixed in 3.1.1. Please download the latest version from our download page and install it.

Thank you, the new version works fine!