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.

Fri Aug 21, 2020 11:20 am

Hello,

How to set =N/A or empty cell dynamically in PowerPoint chart?

Code: Select all
chart.ChartData[1 + index, 1].Value = null


It gives error if I set null as value.

Thanks,
Kinali Gandhi

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

Mon Aug 24, 2020 2:37 am

Hi Kinali,

Sorry for the late reply as weekend.
I tested your code with the latest Spire.Presentation Pack Hotfix Version:5.8.1 but did not encounter any issue. If you are using an older version, please download the latest version and try again.
Besides, I tested the code below and found that it also works well. You can give it a try on your side.
Code: Select all
                    chart.ChartData[1 + index, 1].Value = "";
                    chart.ChartData[1 + index, 1].Value = string.Empty;

If the issue still occurs after trying, please provide you full test code, and tell us your OS information and region setting, e.g. Win7 64 bit, China/Chinese.

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Thu Aug 27, 2020 1:57 am

Hello,

Greetings from E-iceblue!
How is your issue now? Looking forward to your feedback!

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Thu Sep 10, 2020 9:09 am

Hello rachel,

Issue has been resolved, Thank you for you support and quick response.

Regards,
Kinali Gandhi

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

Thu Sep 10, 2020 9:33 am

Hello,

Thanks for your feedback!
Feel free to contact us if you encounter any questions in the future. Wish you all the best!

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Return to Spire.Presentation