Trouble with color |
| Published: November 28, 2007, 4:04 pm |
|
Karen I am having trouble with color. The following snippet: Dim OpenCellInfDialog As New OpenFileDialog OpenCellInfDialog.Title = "Import Cell Information Excel file" OpenCellInfDialog.Filter = "Cell Inf. Excel Files (*.xls) *.xls" OpenCellInfDialog.ShowDialog() If OpenCellInfDialog.FileName <> "" Then grdCellInf.ImportExcelFile(OpenCellInfDialog.FileName) End If 'Freeze first row. Dim Sheet As Aspose.Grid.Desktop.Worksheet = grdCellInf.GetActiveWorksheet() Sheet.FrozenRows = 1 'Color first row beige Dim row As Aspose.Grid.Desktop.GridRow = Sheet.Rows(0) Dim Style As Aspose.Grid.Desktop.Style = row.GetStyle() Style.Color = Color.Beige row.SetStyle(Style) The Excel file loads and first row freezes as it should, but does not get colored beige. Can't figure out what I am doing wrong with the color. Tom [ Full article ] |
|
|
No Comments...