473,396 Members | 2,068 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.

Excel on a ASP.NET page - HELP

Everyone :

Here's my problem. I'm developing an web application for a user inwhich
they will select a "template". This needs to populate an Excel spreadsheet
on the web form with data from SQL Server. All the formulas, values, etc.
will come from the database. The user(s) will do their thing than click
save and all the changes on the excel sheet will be written back to the
database.

I've tried using Farpoint's Spread for Web with some limited success.
What I really want is to bring up excel on the web form.

I tried putting the Microsoft Office Spreadsheet 10.0 COM on the form
but I'm not able to access it from the codebehind page.

Any examples or articles on how to do this would be greatly appreciated.

Sincerely,
Dale Williams

Nov 18 '05 #1
2 1080
Dale,

Used to be OWC was the way to go here, and yeah I don't think it knows what
runat="server" means. Take a look at the new Office. Trust me, a lot
better... and .net friendly :o)

If you can't get that working why not stream down a spreadsheet file with
some VBA or macros that do what you want in a client/server fashion? You
might even be able to call a web service from the VBA. But if it has to
live in a web page seriously look at the new office.

Regards,
Jason S.

"Dale Williams" <dw*******@odyssey-sw.com> wrote in message
news:YL*********************@twister.nyroc.rr.com. ..
Everyone :

Here's my problem. I'm developing an web application for a user inwhich they will select a "template". This needs to populate an Excel spreadsheet on the web form with data from SQL Server. All the formulas, values, etc.
will come from the database. The user(s) will do their thing than click
save and all the changes on the excel sheet will be written back to the
database.

I've tried using Farpoint's Spread for Web with some limited success.
What I really want is to bring up excel on the web form.

I tried putting the Microsoft Office Spreadsheet 10.0 COM on the form
but I'm not able to access it from the codebehind page.

Any examples or articles on how to do this would be greatly appreciated.
Sincerely,
Dale Williams

Nov 18 '05 #2
This article demonstrates ways to interact with Excel:
http://www.aspnetpro.com/NewsletterA...200309so_l.asp

In addition you may want to take a look at this technique:
http://support.microsoft.com/default...;EN-US;Q306572

You might also consider one of these 3rd party products to make the whole
process easier:
http://www.aspose.com/Products/Aspose.Excel/
http://officewriter.softartisans.com/

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Dale Williams" <dw*******@odyssey-sw.com> wrote in message
news:YL*********************@twister.nyroc.rr.com. ..
Everyone :

Here's my problem. I'm developing an web application for a user inwhich they will select a "template". This needs to populate an Excel spreadsheet on the web form with data from SQL Server. All the formulas, values, etc.
will come from the database. The user(s) will do their thing than click
save and all the changes on the excel sheet will be written back to the
database.

I've tried using Farpoint's Spread for Web with some limited success.
What I really want is to bring up excel on the web form.

I tried putting the Microsoft Office Spreadsheet 10.0 COM on the form
but I'm not able to access it from the codebehind page.

Any examples or articles on how to do this would be greatly appreciated.
Sincerely,
Dale Williams

Nov 18 '05 #3

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

Similar topics

4
by: jason | last post by:
Is it possible to write out the contents of a database into an exel-type spreadsheet within an asp page? - Jason
1
by: Matt | last post by:
I have an ASP page that calls ASP routines that I created that execute a database query and return the results to a recordset. I then iterate through the recordset and display the data in a table....
3
by: Andres Romero | last post by:
I have a button in my html page for exporting to excel files using the RenderControl function. When the table generated is small in rows size it works fine, but when there are much more rows (more...
9
by: | last post by:
I have a web page written in asp.net that has multiple datagrids on it that would need to be exported to Excel. Each of the datagrids would be a subset of what the datagrid above it was. Thus...
2
by: Mustufa Baig | last post by:
Hi everybody, I have an ASP.NET website where clients can view their monthly billings by selecting different options. One of the option is the way they want to see the report i.e. whether they...
4
by: dinoo | last post by:
I would appreciate if some one could help me out with this problem. I am trying to export the datagrid to an excel file in ASP.NET. The functionality works fine. But I would like to setup the...
5
by: =?Utf-8?B?U3R1YXJ0?= | last post by:
Hi There I have been having a play around with the following code to display a datagrid in Excel (all from Steve Orr's site): Private Sub btnTechServAccred_Click(ByVal sender As System.Object,...
1
by: JawzX01 | last post by:
Hello All, First, thank you for any help you can provide. I'm trying to do a simple export to excel. I've used the classic code that is all over the internet, and of course it worked without a...
3
by: akristensen | last post by:
I am new to this site, so be patient if I do not ask the question correctly. Current Target Platform: Browser: MS IE, script language: Javascript (will use VBScript, but JS is preferred), External...
0
by: JRough | last post by:
Hi, I have a page with a form that is included into a php page. It has some php variables which are headers based on the user choices. In the form I will send some mysql data columns but right...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.