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.

Mon May 04, 2020 9:08 am

I want to update the existing Chart Excel values using .NET in PowerPoint.

Code: Select all
             /*get slide form existing presentation*/
            ISlide slide = presentation.Slides[1];
     
           /*load chart from slide shapes*/
            IChart chart = slide2.Shapes[3] as IChart;

           Double[] xdata = new Double[] { 7.7, 8.9, 1.0, 2.4 };
            Double[] ydata = new Double[] { 15.2, 5.3, 6.7, 8 };
            Double[] size = new Double[] { 1.1, 2.4, 3.7, 4.8 };

            /*update existing chart data values in excel*/
            for (Int32 i = 0; i < xdata.Length; ++i)
            {
                chart.ChartData[i + 1, 0].Value = xdata[i];
                chart.ChartData[i + 1, 1].Value = ydata[i];
                chart.ChartData[i + 1, 2].Value = size[i];
            }


After Updating values when I opened PowerPoint and clicked on edit data of the chart.
I am facing below error.

"The linked file isn't available. This error can occur if the linked file has been moved or hasn't been saved. Embedding the data instead of linking it can help avoid this error, but the data won't be updated automatically if it changes in the source file."
Last edited by Kinali94 on Mon May 04, 2020 10:54 am, edited 3 times in total.

Kinali94
 
Posts: 12
Joined: Mon May 04, 2020 8:46 am

Mon May 04, 2020 10:47 am

Hello,

Thanks for your inquiry.
To help us investigate your issue more accurately and quickly, please provide your full code along with your input file. You could upload here or send them to us(support@e-iceblue.com) via email.
Thanks in advance.

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Mon May 04, 2020 10:58 am

[quote="rachel.lei"]
Hello,

Thanks for your reply.
I have updated my code, please check and let me know.
Thanks in advance.

Kinali94
 
Posts: 12
Joined: Mon May 04, 2020 8:46 am

Tue May 05, 2020 1:32 am

Hello,

Thanks for your sharing.
I simulated a PPT file and tested your code with the latest Spire.Presentation Pack Hotfix Version:5.4.2 but didn't reproduce your issue. If you are using an older version, please try again with the latest version.
If the issue still occurs after trying, please share your input file for further investigation.

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Tue May 05, 2020 7:28 am

I tried with the latest Spire version but It's not working for me.

I am attaching my PowerPoint file with a chart.
Can you please check
powerpoint.zip


Thanks

Kinali94
 
Posts: 12
Joined: Mon May 04, 2020 8:46 am

Tue May 05, 2020 8:08 am

Hello,

Thanks for your sharing.
I have reproduced your issue and logged it in our bug tracking system with the ticket SPIREPPT-1162. If there is any progress, we will let you know.
Apologize for the inconvenience caused.

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Thu May 07, 2020 12:07 pm

Hello,

Is there any update on Ticket SPIREPPT-1162.
This issue related to linked chart in PowerPoint?

Thanks in advance!

Kinali94
 
Posts: 12
Joined: Mon May 04, 2020 8:46 am

Fri May 08, 2020 1:47 am

Hello,

Thanks for your following up.
Sorry there is no significant progress on your issue at this moment. Our Dev team will keep looking into it to find the cause of the issue. Please spare us more time. Once there is any update, we will notify you immediately.

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Sat May 09, 2020 9:20 am

Hello,

Glad to inform you that this issue has been fixed. We prepared a temporary version for you. Please download and test it from the following link. If there is any other question, just feel free to contact us.
http://www.e-iceblue.com/downloads/TempVersion/spire.presentation_5.5.0.zip

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1271
Joined: Wed Apr 25, 2018 3:20 am

Thu Jun 04, 2020 3:30 am

Hello,

Hope you are doing well.
The official version (Spire.Presentation v5.6.1) is now available, welcome to download it from the following links.
Website link: https://www.e-iceblue.com/Download/download-presentation-for-net-now.html
Nuget link: https://www.nuget.org/packages/Spire.Presentation/5.6.1

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Return to Spire.Presentation