Articles in this section
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.

Adding_ExcelVSTO_image.png

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.

IncludeFormImage.png

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();
  }

AddIns_Image.png

Step 5: Run the application; you will see Excel with Syncfusion controls, as shown in the image below:

Output Image Reference:

Output_Image.png

View Sample in GitHub

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied