TMS FlexCel and diagonal line in Excel

Hi everyone.

I would like to make diagonal lines in Excel cells.
I try in several ways and unfortunately nothing works for me.
...
ApplyFormat.Borders.Diagonal:=true;
ApplyFormat.Borders.DiagonalStyle:=true;
fmt.Borders.Diagonal.Style:=TFlxBorderStyle.Thin;
XF1 := Xls.AddFormat(fmt);
Xls.SetCellFormat(1,1,10,10,fmt,ApplyFormat,true);
...
Is there any example where this is implemented?
Can anyeone help me ?

I'm not an expert on Flexcel - but did you try ApiMate delivered with Flexcel? It's very powerful on such investigations...