How to use AppendHorizontalLine method correctly?
Posted: Mon Jan 04, 2021 6:02 am
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:
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: