Hi
Thanks for your inquiry. I think that you can try using the following
code.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Writeln("some
text before horizontal line");
Shape line = new Shape(doc, ShapeType.Line);
line.Width
= 500;
line.Height
= 0;
builder.CurrentParagraph.AppendChild(line);
builder.Writeln("some
text after horizontal line");
doc.Save(@"427_106820_Sonreir\out.doc");
Also you can try this.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Writeln("some
text before horizontal line");
builder.InsertHtml("");
builder.Writeln("some
text after horizontal line");
doc.Save(@"427_106820_Sonreir\out.doc");
I hope that this will help you.
Best regards.