Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Tue Apr 07, 2020 9:53 am

Hi ,
I am using one table ,pie chart in one slide.
if the table data is empty ,i want to delete the pie chart.
to create the pie chart i have used the following code.

int Slideno= 0;
RectangleF rect3 = new RectangleF(390, 100, 500, 370);
Spire.Presentation.Charts.IChart chart2 = presentation.Slides[Slideno].Shapes.AppendChart(Spire.Presentation.Charts.ChartType.Pie3D, rect3, false);
if i want to delete this Pie chart. how to delete.
Please help to resolve this issue.

AnuH365068
 
Posts: 13
Joined: Wed Mar 04, 2020 10:45 am

Tue Apr 07, 2020 10:07 am

Hello,

Thanks for your inquiry.
Please refer to this tutorial (How to Remove Chart from a PowerPoint Slide in C#, VB.NET) to remove chart from a Slide. If you have further questions, please feel free to contact us.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.Presentation