We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Excel Values

Thread ID:

Created:

Updated:

Platform:

Replies:

63549 Jul 5,2007 05:14 AM Jul 6,2007 06:06 AM ASP.NET Web Forms (Classic) 3
loading
Tags: XlsIO
V4mp1r3
Asked On July 5, 2007 05:14 AM

Hello

How can i get the result from a formula instead of the formula, when i export values to a datatable?

Just to be more precise:

931.90200000000004


I want to get 931.90200000000004 value instead of "RC[2]+RC[4]+RC[6]+RC[8]+RC[9]+RC[10]"

Thanks in advance


Melba Winshia [Syncfusion]
Replied On July 5, 2007 08:39 AM

Hi,

Thank you for your interest in Syncfusion products.

You can get the result from a formula instead of the formula while exporting values to a datatable by using the enum ExcelExportDataTableOptions.ComputedFormulaValues.

[C#]

//To get the result from a Formula
DataTable table = sheet.ExportDataTable(sheet.UsedRange, ExcelExportDataTableOptions.ComputedFormulaValues);

Please refer the sample in the below link which illustrates the above.

http://websamples.syncfusion.com/samples/samples/XlsIO.Web/4.4.0.51/F63549/main.htm

Please try running the above sample and let me know if this helps.

Thanks,
Melba

V4mp1r3
Replied On July 5, 2007 10:19 AM

Yes it worked, thank you very much =)

Melba Winshia [Syncfusion]
Replied On July 6, 2007 06:06 AM

Hi,

Glad to hear that it works fine.

Kindly let me know if you have any other questions.

Thanks,
Melba

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;