Category / Section
How to integrate Syncfusion WinForms Control in VSTO excel Add-in project?
1 min read
To integrate Syncfusion WinForms Control into a VSTO Excel add-in, follow the steps below:
Here is an example for integrating the SfDatagrid in VSTO Excel add-in.
Step 1: Start Visual Studio.
Step 2: Create a VSTO Excel Add-in project.
Step 3: Include a Form in VSTO Excel Add-in project and load the SfDataGrid control.
Take a moment to peruse the WPF-DataGrid, to learn more about DataGrid examples.
Step 4: In the ThisAddIn class, within the ThisAddIn_Startup event , use the form.Show() method to display the Form.
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
Form1 form = new Form1();
form.Show();
}
Step 5: Run the application; you will see Excel with Syncfusion controls, as shown in the image below:
Output Image Reference: