Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Wed Jun 05, 2019 11:24 am

Hello,

I'm copying the value of several cells of a sheet. Some of the cells have the a data and others contain a formula.
I can read the data with the method hoja.Range(i,j).value, and the data in the cells with a formula with the method hoja.Range(i,j).FormulaValue.

Is there any method that read both, the data of the cells with a data and the data of the cells with a formula inside?

Thanks,

Luis.

lgomez
 
Posts: 6
Joined: Tue Oct 23, 2018 6:39 am

Thu Jun 06, 2019 6:59 am

Hello,

Thanks for your inquiry.
You can use hoja.Range[i, j].DisplayedText to read the data for the both scenarios. If there is any question, please provide your testing file to help us further look into your issue. You could send it to us via email (support@e-iceblue.com).

Sincerely,
Lisa
E-iceblue support team
User avatar

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

Thu Jun 06, 2019 3:28 pm

Thank you!

lgomez
 
Posts: 6
Joined: Tue Oct 23, 2018 6:39 am

Fri Jun 07, 2019 3:55 am

Hi,

You're welcome.
Feel free to contact us if you need any help.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.XLS