Page 1 of 1

How to use AppendHorizontalLine method correctly?

Posted: Mon Jan 04, 2021 6:02 am
by nalanfeng
How to use AppendHorizontalLine method correctly? I want to draw a horizontal line in the word document page, but it failed. This horizontal line is generated, but it cannot be displayed. The code is as follows:

DOCX := TDOCXReadWrite.Create(nil);
try
Para := FDOCX.Editor.Paras.AppendPara;
Para.AppendHorizontalLine(agohatCentered, 5);
......
finally
DOCX.Free;
end;

The result after code execution is as follows:
Image

Re: How to use AppendHorizontalLine method correctly?

Posted: Thu Jan 07, 2021 11:04 am
by larsa
Hello

There seems to be a problem with this. Will fix it in the next update.