Questions and answers on how to use XLSReadWriteII 5.
-
etwoss
- Posts: 12
- Joined: Tue Jul 15, 2014 7:50 am
Post
by etwoss »
Hi
Changed all old code to cmdFormat code except:
Code: Select all
R := FSheet.Range.Items[FFirstColumn + i, FCurrentRow, FFirstColumn + i, FCurrentRow];
R.WrapText := True;
R.VertAlignment := cvaTop;
R := FSheet.Range.Items[FFirstColumn + i, FCurrentRow, FFirstColumn + i, FCurrentRow];
R.BorderTopStyle := cbsThin;
R.BorderTopColor := clBlack;
How can i do this using cmdFormat. Could not find it in example
Eric
-
larsa
- Site Admin
- Posts: 926
- Joined: Mon Jun 27, 2005 9:30 pm
Post
by larsa »
Hello
Example
Code: Select all
XLS.CmdFormat.Alignment.WrapText := True;
XLS.CmdFormat.Alignment.Vertical := cvaTop;
FormatCells sample explains how to format borders.
Lars Arvidsson, Axolot Data