Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Getting value from a formula cell

Last post 07-25-2008 3:41 by nemke. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 02-26-2008 8:05

    • siglr
    • Not Ranked
    • Joined on 02-25-2008
    • Points 90

    Getting value from a formula cell

    Hello


    I have an Excel file which I load into an Infragistics.Excel.Workbook object. In this Excel file, I have a cell where I put a value, and another one which calculates something from the first one. In my code, I want to retrieve the resulting value from this second cell, but all I can get is the formula itself.

    How do I tell the Infragistics.Excel engine to give me the value, not the formula?

    Thanks
    Guy

    • Post Points: 20
  • 02-26-2008 9:38 In reply to

    Re: Getting value from a formula cell

    The ability to solve formulas is not currently supported in the Excel assembly. I would recommend submitting a feature request for this to the support group: http://devcenter.infragistics.com/Protected/RequestFeature.aspx.  I have seen other people request this and the number of requests for a certain feature does play a part in what gets implemented in future releases.

    • Post Points: 20
  • 02-26-2008 13:06 In reply to

    • siglr
    • Not Ranked
    • Joined on 02-25-2008
    • Points 90

    Re: Getting value from a formula cell

    Wow... I don't see how the Infragistics.Excel engine can be useful without the ability to get calculated values out of the worksheet!!!!

    What do you use it for?!? 

    Isn't there a way I could do it?  I find this hard to believe...

    • Post Points: 35
  • 02-26-2008 19:00 In reply to

    Re: Getting value from a formula cell

    Hi Siglr,

    The idea behind the Excel engine is to allow people to move data between Excel and the WinGrid. When we added the basic Export feature a couple of years ago, there was huge customer demand just to get the grid data into Excel so end users could mess around with it.  Excel is a very usedful reporting tool.  We added the ability to load Excel files into Workbook objects last year based on customer feedback that in certain cases they wanted to move data back into a WinGrid and persist it back to their data store. 

    When Exporting data to Excel, you can preserve the formula information from an UltraCalcManager that is bound to a WinGrid, as well as images and other formatting using the Infragistics.Excel engine.  Since Excel is Cell based, you assign formulas on individual cells, when we export, since we have a clean Worksheet, we can assign the formulas correctly.  But since the WinGrid is Column based, formulas are based on the entire column, not the cell.  So we cannot gurantee that a formula would make any sense when brought back into the WinGrid from Excel. 

    I did get the email you sent to the productmanager address and I will make sure your feature request gets into the system.

    Thanks

    Jason

     

     

    Jason Beres | Director, Product Management
    Infragistics, Inc. | http://www.infragistics.com
    Microsoft .NET MVP | INETA Speakers Bureau
    Phone 609 448 2000 ext 216 | Fax 609 448 2017
    Skype jason.beres | jasonb@infragistics.com
    Filed under:
    • Post Points: 20
  • 02-27-2008 10:03 In reply to

    Re: Getting value from a formula cell

    By the way... if you want to do Excel-like calculations and formulas in your application, then you might be looking for the UltraCalcManager component.

    Mike Saltzman
    R&D Engineer
    Infragistics, Inc.
    • Post Points: 5
  • 07-24-2008 12:49 In reply to

    • nemke
    • Not Ranked
    • Joined on 07-10-2008
    • Points 90

    Re: Getting value from a formula cell

     I Agree with siglr.

    I have complex computation as a result of using multiple sheets and cells in excel for other cell.

    This is funny. I have no use of this Excel dll, cause I have to do again computation for a large xls data source, just to get value from a cell that is already calculated within excel.

    • Post Points: 20
  • 07-24-2008 16:24 In reply to

    Re: Getting value from a formula cell

    Hi Guys,

    I just confirmed that we will support this feature in the next release (2008.3). 

    Either reply to this post or send me an email if you have any more questions around this or feature needs on Excel.

    Thanks

    Jason

     

    Jason Beres | Director, Product Management
    Infragistics, Inc. | http://www.infragistics.com
    Microsoft .NET MVP | INETA Speakers Bureau
    Phone 609 448 2000 ext 216 | Fax 609 448 2017
    Skype jason.beres | jasonb@infragistics.com
    • Post Points: 20
  • 07-25-2008 3:41 In reply to

    • nemke
    • Not Ranked
    • Joined on 07-10-2008
    • Points 90

    Re: Getting value from a formula cell

     Good job for next version.

    Can't wait :D

    • Post Points: 5
Page 1 of 1 (8 items)
Powered by Community Server (Commercial Edition), by Telligent Systems