In all your 3.x versions I find that ParagraphFormat.Alignment is being ignored. This even happens in the demos that come with the component. I noticed a thread in the forum from last year with the same problem, but it seemed to be fixed in that thread. Have you any idea why this is happening again?
In fact, now that I think about it, all of the ParagraphFormat properties are being ignored. Is this something you are aware of and working on, as my client has already purchased the component, and will be expecting a finished product in the next few days.
Well here is some code from the demos that come with the component.
//Specify paragraph formatting before calling InsertParagraph or Writeln.
builder.ParagraphFormat.Borders[BorderType.Top].LineStyle = LineStyle.Double;
builder.ParagraphFormat.Borders[BorderType.Top].LineWidth = 2;
builder.ParagraphFormat.Alignment = ParagraphAlignment.Right;
builder.ParagraphFormat.Shading.ForegroundPatternColor =
System.Drawing.Color.Azure;
builder.ParagraphFormat.Shading.Texture = TextureIndex.TextureSolid;
builder.ParagraphFormat.LeftIndent = 2 \* 72; //2 inchdes by 72 points.
builder.ParagraphFormat.SpaceBefore = 12;
builder.ParagraphFormat.SpaceAfter = 12;
builder.Font.Name = "Arial";
builder.Font.Size = 12;
builder.Write("This fragment demonstrates use of paragraph formatting to specify ");
builder.Writeln("alginment, spacing, borders and shading.");
builder.ParagraphFormat.ClearFormatting();
The ParagraphFormat.Alignment is not being set. It doesn’t matter what I set it to, the text is always left aligned.
I may have been a bit hasty saying that they all were being ignored. It was just something else I noticed, but it seems they are working, except for alignment.
I’ve just produced a document using the Document Builder demo and everything works for me (see attached). What version of Microsoft Word are you using?
I selected DOC as the output format from the Featured Demos page, and then saved the output straight from the browser. I opened it in Word 2000 before I sent it to make sure it was valid, but I didn’t save it again from there.
Incidentally, the alignment seems to work in your viewer beta.
Can you give me an update as to when you think this problem might be fixed? I’m up against it time wise, so even if I can get an ETA I’ll at least know where I stand.
As you can see I have applied the left alignment to the text before I apply the text when building the document. I even tried applying the left alignment after I already applied the text but it made no difference.
Also, the text that is being applied to the document is originally left aligned.