473,396 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Use Excelsheet in ASP.NET for calculation

Hi,

I want to use a difficult Excelsheet as source for my calculation in a
ASP.NET (C#) page. I have 5 input fields on my ASP.NET page and when I press
the submit button I want to put these values into the sheet in cell A1:A5.
And then in A6 an awnser will appear, this awnser needs to be shown on the
ASP.NET page.

Is this possible? And how? (examples) And what serverside software do I need?
Jun 27 '08 #1
5 1483
"jelle79" <je*****@discussions.microsoft.comwrote in message
news:25**********************************@microsof t.com...
Is this possible?
Yes.
And how? (examples) And what serverside software do I need?
http://www.aspose.com/categories/fil...a/default.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #2
There are products doing Excel calculations without Excel. Here is one of
them:
http://www.spreadsheetgear.com/suppo...alcengine.aspx

Google for Excel Calculation Engine for more.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"jelle79" <je*****@discussions.microsoft.comwrote in message
news:25**********************************@microsof t.com...
Hi,

I want to use a difficult Excelsheet as source for my calculation in a
ASP.NET (C#) page. I have 5 input fields on my ASP.NET page and when I
press
the submit button I want to put these values into the sheet in cell A1:A5.
And then in A6 an awnser will appear, this awnser needs to be shown on the
ASP.NET page.

Is this possible? And how? (examples) And what serverside software do I
need?

Jun 27 '08 #3
Thanks Mark,

Do you know if it's also possible with a Microsoft Office (Serverside)
product?

--
Jelle de Jong

"Mark Rae [MVP]" wrote:
"jelle79" <je*****@discussions.microsoft.comwrote in message
news:25**********************************@microsof t.com...
Is this possible?

Yes.
And how? (examples) And what serverside software do I need?

http://www.aspose.com/categories/fil...a/default.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #4
"jelle79" <je*****@discussions.microsoft.comwrote in message
news:04**********************************@microsof t.com...

[top-posting corrected]
Do you know if it's also possible with a Microsoft Office (Serverside)
product?
Under no circumstances even try that:
http://support.microsoft.com/default...US;q257757#kb2
http://support.microsoft.com/default.aspx/kb/288367
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #5
Eliyahu,

I'm not looking for an Excel-Calculation Engine, but a component to open a
XLS-file and use this file in my ASP.NET page for the calculation.

So a user uploads his XLS sheet, specifies what fields are used for input
(A1:A5) en what field show the output after Excel has run a calculation.

So I want something like this:

ExcelObject e = new ExcelObject("C:\Path_to\My_worksheet.xls");
e.setValue("A1", 1000);
e.setValue("A2", 400);
int result = e.getValue("A3"); // Content A3: =(A1/A2)

Response.Write("Result = " + result); // = 2.5



"Eliyahu Goldin" wrote:
There are products doing Excel calculations without Excel. Here is one of
them:
http://www.spreadsheetgear.com/suppo...alcengine.aspx

Google for Excel Calculation Engine for more.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"jelle79" <je*****@discussions.microsoft.comwrote in message
news:25**********************************@microsof t.com...
Hi,

I want to use a difficult Excelsheet as source for my calculation in a
ASP.NET (C#) page. I have 5 input fields on my ASP.NET page and when I
press
the submit button I want to put these values into the sheet in cell A1:A5.
And then in A6 an awnser will appear, this awnser needs to be shown on the
ASP.NET page.

Is this possible? And how? (examples) And what serverside software do I
need?


Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: vijay | last post by:
HI All, I want to print excelsheet from my application i am working on C#.net windows application . pls help me
2
by: manssi | last post by:
hii, i have created a macro in excel in windows vista and its running there perfectly and now i want to run this macro from a form in asp.net. how can i do this? actually my application...
2
by: rguarnieri | last post by:
Hi!, I'm using Response.ContentType="application/vnd.ms-excel" to show an html table over excel sheet and I need to change the excelsheet title, does anyone know how to do that?, now it's...
0
by: srujanaindia | last post by:
how to check whether it is excelsheet or not and how to get data from sheet ie., how to read data from the path of file(ecxel sheet) i can wriite query like select * from but i require...
0
by: dellarocco | last post by:
'EXPORTS TABLE IN ACCESS DATABASE TO EXCEL Dim strExcelFile As String Dim strWorksheet As String Dim strDB As String Dim strTable As String Dim objDB As Database
5
by: sarangbagul1985 | last post by:
can anyone tell me how to import database from excelsheet to mysql using php (i.e. to transfer abc.xls to database)
1
by: jayakumarmaarga | last post by:
Hi, How to open Password Protected Excelsheet, I know password and i want to open that excelsheet by given this password and read the excelsheet values again post values to sql database.
3
by: nickyspace | last post by:
hello can anyone help me out how to convert picture into excelsheet
2
mageswar005
by: mageswar005 | last post by:
hi, I need one help, How can i Export the Datas from mysql to Excelsheet not csv in php coding.The excelsheet format should be comes under microsoft office excel spreadsheet format.i need all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.