Adding Content to a Workbook

To create a new workbook and add values to the first ten cells, complete the following steps:

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

2.   Add values to the first ten cells.

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.