We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to copy and insert a chart in the same worksheet using C#,VB.NET?

Platform: WPF |
Control: XlsIO

This article explains how to copy and insert a chart in the same worksheet in XlsIO using C#/VB.NET.

How to copy and insert chart in same worksheet?

When a chart with same formatting is to be applied for different charts, there is no need of creating a new chart every time. Instead, we can copy the existing chart and make use of the cloned chart. This can be achieved by cloning and repositioned the chart in the worksheet.

To copy and insert a chart in same worksheet, you need to follow the below steps.

Steps to copy and insert a chart

  1. Create a workbook and add chart data in it.


  1. Add a chart in the worksheet.


The below screenshot shows output of the chart created using the above code.

  1. Then clone the chart added and set the positions for the new chart.


  1. Add data for the new chart.


  1. Save the workbook.


To know more about working with charts in XlsIO, please refer the documentation.

Download complete sample

The following C#/VB.NET complete code snippet shows how to copy and insert a chart in the same worksheet in XlsIO.



The below screenshot shows the output of the generated Excel file after inserting the chart in XlsIO.

2X faster development

The ultimate WPF UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile