Popis
Tuto událost můžete použít k aplikaci dalšího formátování na celou exportovanou oblast
Syntaxe
TAfterExport =
procedure (Sender: TObject; Range:
IXLSRange) of object;
| Sender |
TObject. Určuje komponentu TDataToXLS, která vyvolala událost |
| Range |
IXLSRange. Představuje oblast obsahující celou exportovanou oblast |
Příklad
Tento příklad vloží silné ohraničení kolem exportované oblasti
procedure TForm1.DataToXLS1AfterExport(Sender: TObject;
Range: IXLSRange);
begin
With Range.Borders do begin
Item[xlEdgeBottom].LineStyle := xlContinuous;
Item[xlEdgeBottom].Weight := xlThick;
Item[xlEdgeTop].LineStyle := xlContinuous;
Item[xlEdgeTop].Weight := xlThick;
Item[xlEdgeLeft].LineStyle := xlContinuous;
Item[xlEdgeLeft].Weight := xlThick;
Item[xlEdgeRight].LineStyle := xlContinuous;
Item[xlEdgeRight].Weight := xlThick;
end;
end;