using Infragistics.Documents.Excel; using Infragistics.Win; using Infragistics.Win.UltraWinSpreadsheet;
This topic provides detailed instructions to help you get up and running as soon as possible with the UltraSpreadsheet.
The following table lists the concept and topics required as a prerequisite to understanding this topic.
This topic contains the following sections:
The procedure explains step by step the operations necessary for adding the UltraSpreadsheet to your page.
Following is a conceptual overview of the process:
1. Add assembly references
2. Add namespaces
3. Create UltraSpreadsheet
4. Create content (alternative)
5. Load content (alternative)
6. Bind/set workbook to the UltraSpreadsheet
The following steps demonstrate how to add the UltraSpreadsheet to your page.
Add the following assembly references in your project:
Infragistics.dll
Infragistics.Undo.dll
Infragistics.Documents.Core.dll
Infragistics.Documents.Excel.dll
Infragistics.Win.UltraSpreadsheet
Add the following namespaces:
In C#:
using Infragistics.Documents.Excel; using Infragistics.Win; using Infragistics.Win.UltraWinSpreadsheet;
In Visual Basic:
Imports Infragistics.Documents.Excel Imports Infragistics.Win Imports Infragistics.Win.UltraWinSpreadsheet
Create and put the UltraSpreadsheet on your page:
In C#:
UltraSpreadsheet spreadsheet1 = new UltraSpreadsheet();
In VB:
Dim spreadsheet1 As New UltraSpreadsheet()
Create a workbook, naming it "wb1" and add content in it as described in the Creating a Workbook (Infragistics Excel Engine) topic.
Load a workbook from a stream or file as described in the Read an Excel File (Infragistics Excel Engine) topic and name the workbook "wb1".
Set the UltraSpreadsheet’s Workbook property to the workbook create in the step 4 or 5.
In C#:
this.UltraSpreadsheet1.Workbook = wb1;
In Visual Basic:
Me.UltraSpreadsheet1.Workbook = wb1
The following topics provide additional information related to this topic.