Formatting Cells

To format the cells of a book, complete the following steps:

1.   Add a reference to C1.Silverlight.Excel.dlland create a C1XLBook.

2.   Add some content to the workbook, create a new style and apply the styles to the cells in the first column of the sheet.

3.   Save the workbook. The code looks like the following. In this example it is placed within a button1_Click event so the Save As dialog box will open when the user clicks the button.

       C#

 


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.