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
The below screenshot shows output of the chart created using the above code.
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.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|