documentBuilder.ParagraphFormat.LeftIndent and RightIndent has no effect?

Has someone used either of these properties and actually seen them work? If so could you post a short example. Here’s what i have now.

Aspose.Word.Document wordDoc = new Aspose.Word.Document();
Aspose.Word.DocumentBuilder db = new DocumentBuilder(wordDoc);

db.InsertParagraph();
db.ParagraphFormat.LeftIndent = 150;
db.Write(“welcome to here”);

db.InsertParagraph();
db.ParagraphFormat.LeftIndent = 150;
db.Write(“welcome to there”);
wordDoc.Save(“HelloWorld5.doc”,SaveFormat.FormatDocument,SaveType.OpenInBrowser,Response);
Response.End();

But it seems none of this has any effect on the paragraph indentation. Am I doing something wrong?

Your code works fine and we have tests for these properties.

You get one empty paragraph at the top of the document, you can do this to get rid of it and simplify (unless empty paragraph is what you want):

db.ParagraphFormat.LeftIndent = 150;
db.Writeln(“welcome to here”);
db.ParagraphFormat.LeftIndent = 150;
db.Writeln(“welcome to there”);

Both your code and mine work fine. The text is indented 150 points to the right (around 2 inches).