How to use AppendHorizontalLine method correctly?

Questions and answers on how to use DOCXReadWrite
Post Reply
nalanfeng
Posts: 16
Joined: Fri Dec 25, 2020 12:49 pm

How to use AppendHorizontalLine method correctly?

Post 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
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: How to use AppendHorizontalLine method correctly?

Post by larsa »

Hello

There seems to be a problem with this. Will fix it in the next update.
Lars Arvidsson, Axolot Data
Post Reply