473,549 Members | 2,982 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Programmaticall y creating Excel spreadsheets in ASP.NET

Hi,

I need to be able to programatically create excel spreadsheets in
ASP.NET (C#), WITHOUT having MS Office on the server.

Does anybody have any advice/links/whatever for me?

Thanks in advance,

Raoul.
Nov 18 '05 #1
14 2251
CT
Hmm, one way is to have a grid control that can export to an Excel sheet,
but otherwise you need a third-party control that does it for you. Here are
some links:
http://www.infragistics.com/products/grids.asp
http://www.devdirect.com/ALL/GRID_PCAT_1855.aspx
--
Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"Raoul Snyman" <ra**********@p sitek.com> wrote in message
news:e1******** *************** ***@posting.goo gle.com...
Hi,

I need to be able to programatically create excel spreadsheets in
ASP.NET (C#), WITHOUT having MS Office on the server.

Does anybody have any advice/links/whatever for me?

Thanks in advance,

Raoul.

Nov 18 '05 #2
Don
Hi Raoul,

Our Spread for Web Forms is a spreadsheet component that will import
and export Excel files, as well as many other features. Here's the
link for more info if you're interested in downloading a trial:
http://www.fpoint.com/netproducts/spreadweb/spread.html

- Donald
FarPoint
ra**********@ps itek.com (Raoul Snyman) wrote in message news:<e1******* *************** ****@posting.go ogle.com>...
Hi,

I need to be able to programatically create excel spreadsheets in
ASP.NET (C#), WITHOUT having MS Office on the server.

Nov 18 '05 #3
have you looked at the content type setting in the page declaration?

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Raoul Snyman" <ra**********@p sitek.com> wrote in message
news:e1******** *************** ***@posting.goo gle.com...
Hi,

I need to be able to programatically create excel spreadsheets in
ASP.NET (C#), WITHOUT having MS Office on the server.

Does anybody have any advice/links/whatever for me?

Thanks in advance,

Raoul.

Nov 18 '05 #4
I belive the ContentType header will only help when you already have an
Excel file to send.

If you do not want to install MS Office then you have to look for third
party solution which will write an excel file from scratch.
It will be much cheaper to buy one than to write it yourself.

George.

"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
have you looked at the content type setting in the page declaration?

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Raoul Snyman" <ra**********@p sitek.com> wrote in message
news:e1******** *************** ***@posting.goo gle.com...
Hi,

I need to be able to programatically create excel spreadsheets in
ASP.NET (C#), WITHOUT having MS Office on the server.

Does anybody have any advice/links/whatever for me?

Thanks in advance,

Raoul.


Nov 18 '05 #5
build a table in html, set the content type to excel (lookup the exact
phrase) and your page should generate as a spreadsheet, and the client will
execute their spreadsheet app or be prompted for download.

That's what I believe will work

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"George Ter-Saakov" <no****@hotmail .com> wrote in message
news:OT******** *****@TK2MSFTNG P10.phx.gbl...
I belive the ContentType header will only help when you already have an
Excel file to send.

If you do not want to install MS Office then you have to look for third
party solution which will write an excel file from scratch.
It will be much cheaper to buy one than to write it yourself.

George.

"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
have you looked at the content type setting in the page declaration?

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Raoul Snyman" <ra**********@p sitek.com> wrote in message
news:e1******** *************** ***@posting.goo gle.com...
Hi,

I need to be able to programatically create excel spreadsheets in
ASP.NET (C#), WITHOUT having MS Office on the server.

Does anybody have any advice/links/whatever for me?

Thanks in advance,

Raoul.



Nov 18 '05 #6
Cool. I did not know that.
Is it working with Excel 2000? Or XP only?

George.
"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:ep******** ******@TK2MSFTN GP12.phx.gbl...
build a table in html, set the content type to excel (lookup the exact
phrase) and your page should generate as a spreadsheet, and the client will execute their spreadsheet app or be prompted for download.

That's what I believe will work

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"George Ter-Saakov" <no****@hotmail .com> wrote in message
news:OT******** *****@TK2MSFTNG P10.phx.gbl...
I belive the ContentType header will only help when you already have an
Excel file to send.

If you do not want to install MS Office then you have to look for third
party solution which will write an excel file from scratch.
It will be much cheaper to buy one than to write it yourself.

George.

"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
have you looked at the content type setting in the page declaration?

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Raoul Snyman" <ra**********@p sitek.com> wrote in message
news:e1******** *************** ***@posting.goo gle.com...
> Hi,
>
> I need to be able to programatically create excel spreadsheets in
> ASP.NET (C#), WITHOUT having MS Office on the server.
>
> Does anybody have any advice/links/whatever for me?
>
> Thanks in advance,
>
> Raoul.



Nov 18 '05 #7
Raoul Snyman wrote:
Hi,

I need to be able to programatically create excel spreadsheets in
ASP.NET (C#), WITHOUT having MS Office on the server.

Does anybody have any advice/links/whatever for me?

Thanks in advance,

Raoul.


Hi Raoul

We ran into the same situation with our senior class project. We
cheated and used some vb script to solve the problem.

If you are going to have excel on the client machine and it is a local
intranet (for security settings) you can display the data as a datagrid.
And then use some vbscript to convert the datagrid to an excel spread
sheet. The only problem we ran across was having to set the security
settings on IE to prompt for initialize and script active X security
setting.

Otherwise one of my team member was suggesting the same thing as Curt.

Bob

Nov 18 '05 #8
Was possible since at least Excel 97 (much slower though to convert a big
file). With later version you could also probably use the XML schema used to
save Excel files though doing this yourself may still be overkill compared
with buying a component.

Patrice

"George Ter-Saakov" <no****@hotmail .com> a écrit dans le message de
news:ec******** ******@TK2MSFTN GP12.phx.gbl...
Cool. I did not know that.
Is it working with Excel 2000? Or XP only?

George.
"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:ep******** ******@TK2MSFTN GP12.phx.gbl...
build a table in html, set the content type to excel (lookup the exact
phrase) and your page should generate as a spreadsheet, and the client

will
execute their spreadsheet app or be prompted for download.

That's what I believe will work

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"George Ter-Saakov" <no****@hotmail .com> wrote in message
news:OT******** *****@TK2MSFTNG P10.phx.gbl...
I belive the ContentType header will only help when you already have an Excel file to send.

If you do not want to install MS Office then you have to look for third party solution which will write an excel file from scratch.
It will be much cheaper to buy one than to write it yourself.

George.

"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
> have you looked at the content type setting in the page declaration?
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "Raoul Snyman" <ra**********@p sitek.com> wrote in message
> news:e1******** *************** ***@posting.goo gle.com...
> > Hi,
> >
> > I need to be able to programatically create excel spreadsheets in
> > ASP.NET (C#), WITHOUT having MS Office on the server.
> >
> > Does anybody have any advice/links/whatever for me?
> >
> > Thanks in advance,
> >
> > Raoul.
>
>



Nov 18 '05 #9
Oh, and .DOC types (by specifying word) will work as well, for those
interested, or rather it should :}

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"George Ter-Saakov" <no****@hotmail .com> wrote in message
news:ec******** ******@TK2MSFTN GP12.phx.gbl...
Cool. I did not know that.
Is it working with Excel 2000? Or XP only?

George.
"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:ep******** ******@TK2MSFTN GP12.phx.gbl...
build a table in html, set the content type to excel (lookup the exact
phrase) and your page should generate as a spreadsheet, and the client

will
execute their spreadsheet app or be prompted for download.

That's what I believe will work

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"George Ter-Saakov" <no****@hotmail .com> wrote in message
news:OT******** *****@TK2MSFTNG P10.phx.gbl...
I belive the ContentType header will only help when you already have an Excel file to send.

If you do not want to install MS Office then you have to look for third party solution which will write an excel file from scratch.
It will be much cheaper to buy one than to write it yourself.

George.

"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
> have you looked at the content type setting in the page declaration?
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "Raoul Snyman" <ra**********@p sitek.com> wrote in message
> news:e1******** *************** ***@posting.goo gle.com...
> > Hi,
> >
> > I need to be able to programatically create excel spreadsheets in
> > ASP.NET (C#), WITHOUT having MS Office on the server.
> >
> > Does anybody have any advice/links/whatever for me?
> >
> > Thanks in advance,
> >
> > Raoul.
>
>



Nov 18 '05 #10

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

Similar topics

5
3363
by: Guy Incognito | last post by:
Hello, I've written an asp.net application that creates Excel documents. It works by creating an excel document in XML format. But I wonder if I'm reinventing the wheel. I know that there are ways to read and write Excel files with ADO, but as far as I can tell, it doesn't provide the flexibility I need. I need to be able to generate...
1
9220
by: smonczka | last post by:
I have a DTS package that needs to refresh data in 3 separate Excel spreadsheets on a daily basis. The problem is that unless I manually delete the previous day's data, it appends rather than replaces. I can't delete the excel files on a daily basis, as they have to be there for the DTS package to be able to export to Excel. What I want...
3
2575
by: Elliot | last post by:
The program loops through a dataset and creates several spreadsheets based on a change in a particular column. With each new spreadsheet I launch a new instance of excel. After about 100 spreadsheets, a "not enough memory to start Excel" displays. When I checked the Task Manager I had plenty of memory available--I was only using 10% of the...
0
2224
by: Rich Wallace | last post by:
Hello all, Looking for suggestions and tips if possible. I have an application running on a file server that utilizes the FileSystemWatcher to trap when any Excel files are saved by a user. I then need to 'trap' the current file and generate an XML file from the data within the active spreadsheet. I have two issues so far with doing...
2
2299
by: Jim S | last post by:
To my surprise and chagrin, newer versions of Access have disabled the functionality that lets users change the data in linked tables that point to a range in an Excel workbook. This is "because of legal issues..." according to Office Support. I have other issues, specifically a couple of applications that do things such as calculate price...
19
12730
by: wreckingcru | last post by:
I'm trying to output a SQL query that is constructed thru my VB.net GUI into an excel file. Here is the code I'm using: 'Sqlstmt is the SQL query statement 'Conn is the SQL Connection object cmd = New SqlCommand(Sqlstmt, Conn) datareader = cmd.ExecuteReader()
1
4607
by: Mitch | last post by:
I am using Access to create an Excel spreadsheets with graphs related to rows on the sheet1 to the graph on sheet2. I am using the same data but different subsets of the data to make different spreadsheets for different groups. The spreadsheet formats are the same for each of the different groups. So I am using a loop to requery the data...
11
2829
by: Andy Burchill | last post by:
Hi there, I am trying to find out what the best way of creating an excel spreadsheet is, this will need to be done dynamically by an aspx website on the server side. The main way would be to use the Excel com object that is available when you have excel installed, however since this is done server side I need to be sure that it won't...
1
5142
by: thadson | last post by:
Hi, I'm trying to import specific cells from MS Excel 2000 spreadsheets to MS Access 2000 tables then move the spreadsheets to a different directory. I'm very new to this and I'm having trouble to implement this. I have worked out so far the code to import certain cells into 1 table, but I do not know how to import some other cells into...
0
7518
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7715
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7956
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7808
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5087
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1935
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.