Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4254066
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:01:55+00:00 2026-05-21T05:01:55+00:00

I have a spreadsheet that I’d like to compile into a form that I

  • 0

I have a spreadsheet that I’d like to compile into a form that I could call from C#.

Naturally, I’d like to be able to change the inputs to the spreadsheet before reading the calculated result.

What is your recommended method?

UPDATE:

To clarify, I want to make an existing Excel spreadsheet available as a web service that is callable from .NET. I can’t have a dependency on Excel, as its running on a web server.

UPDATE:

I used the answer below, and it worked like a charm. Now I can prototype a formula in Excel, then convert it straight into C# and compile it into an assembly.


This question is also covered under Reading Excel Files as a Server Process.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T05:01:56+00:00Added an answer on May 21, 2026 at 5:01 am

    FlexCel API Mate within TMS Flexcel Studio for .NET lets you convert an existing Excel spreadsheet into C# code, recalculate the spreadsheet, and read the result out of a cell using an API call.

    See the video tutorial of FlexCel ApiMate. The video states, quote:

    ApiMate will convert an Excel file
    into a C#, VB.NET or Delphi.NET
    program.

    The docs also state:

    Recalculation of more than 200 Excel
    functions.

    and:

    You can add your own functions on the
    code to the already big list
    implemented by FlexCel, and use them
    as native functions in your report.

    UPDATE

    Here is clarification from TMS tech support:


    Emailed question:

    I’d like to do the following:

    1. Convert an existing .xlsx file to C# code, importing data from a database.
    2. Allow FlexCel to recalculate the spreadsheet for me.
    3. Read an answer out of a cell (for use elsewhere in my C# code).
    4. Skip the step of writing the finished .xlsx file to the disk (we don’t need this).

    In short, I want to use FlexCel as an “Webserver Excel calculation engine”, so we don’t have to have Excel installed on the web server to perform spreadsheet calculations.

    Are the steps I’ve described possible? Or have I misunderstood how the component works?


    Emailed reply:

    1. You can either load the file directly from the database (by opening from a stream) or use the APIMate tool (incuded in the tools folder) to convert the file to c# code.
    2. Yes, FlexCel will recalculate it with XlsFile.Recalc()
    3. Yes, you can read the recalculated values too.
    4. Yes, you don’t need to write the answer if you don’t want to.

    Besides this, for using it as recalculation engine, we have the “RecalculateCell()” method that won’t recalculate the full spreadsheet, but only the cells needed to get the value in an specific cell. So, if for example your result is in A1, you can call RecalcCell in A1, and it will recalculate only all cells needed to get the value in A1 (including dependecies, so if A1 has a formula with a2, and a2 with a3, all 3 will be calculated).

    There is also a RecalcExpression method, that will recalculate the value of any formula without needing to write it into a cell. So imagine you have a column of numbers at col A, and you want to know the sum. You could use RecalcExpression(“=sum(A:A)”); to know the sum, without needing to enter a formula in B1 with the sum and then reading the value of that formula (which you could also do of course)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Excel spreadsheet that looks like: spreadsheet http://img186.imageshack.us/img186/6495/exelf.jpg I'd like to convert
Ok, so I have an excel spreadsheet that contains data that I would like
I have a web app for commercial property management that needs spreadsheet-like functionality for
I have a list of header values from an excel spreadsheet that is set
I have an excel spreadsheet that has 2 columns. Something like this |ColA |
Background I have a spreadsheet of data that I'm importing into SQL Server 2005.
I have an Excel spreadsheet that needs to display data from our SQL database.
I have a spreadsheet that has a small number of inputs, which drive a
I have hierchical data stored in a spreadsheet that I am converting into an
I have a big json object containing cell data from a sample spreadsheet that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.