473,378 Members | 1,699 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,378 software developers and data experts.

export to excel

Hi,

I'm looking for some way to export data from my asp.net page to excel
speadsheet. I'm generating some table containing raports and other tabular
data and I need some way to export it to excel and maybe to acces. Can
anyone give me some clues? I'v tried to change content of page to
application/excel (or something like this - don't remember right now), it
works for some data, but for larger or more complex tables it ends up with
'unable to open file' error. I was wondering what causes that. Maybe some
rowspans or nested tables?

--
Regards
Marius
Nov 19 '05 #1
3 3369
Hi Mariusz,
Look at

http://support.microsoft.com/default.aspx?scid=kb;en-
us;317719

HTH

Elton Wang
el********@hotmail.com
-----Original Message-----
Hi,

I'm looking for some way to export data from my asp.net page to excelspeadsheet. I'm generating some table containing raports and other tabulardata and I need some way to export it to excel and maybe to acces. Cananyone give me some clues? I'v tried to change content of page toapplication/excel (or something like this - don't remember right now), itworks for some data, but for larger or more complex tables it ends up with'unable to open file' error. I was wondering what causes that. Maybe somerowspans or nested tables?

--
Regards
Marius
.

Nov 19 '05 #2
There are a variety of ways to export ASP.NET content to Excel.
Most of the techniques are described in detail here:
http://SteveOrr.net/articles/ExcelExport.aspx
http://SteveOrr.net/articles/ExportPanel.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Mariusz" <ma**@post.pl> wrote in message
news:42********@news.home.net.pl...
Hi,

I'm looking for some way to export data from my asp.net page to excel
speadsheet. I'm generating some table containing raports and other tabular
data and I need some way to export it to excel and maybe to acces. Can
anyone give me some clues? I'v tried to change content of page to
application/excel (or something like this - don't remember right now), it
works for some data, but for larger or more complex tables it ends up with
'unable to open file' error. I was wondering what causes that. Maybe some
rowspans or nested tables?

--
Regards
Marius

Nov 19 '05 #3
Hi,

Thanx.
Actually I did almost the same but I forgot to turn off the viewstate and
this was the reason why i was unable to open exported files.

--
Mariusz
Look at

http://support.microsoft.com/default.aspx?scid=kb;en-
us;317719

HTH

Elton Wang
el********@hotmail.com
-----Original Message-----
Hi,

I'm looking for some way to export data from my asp.net

page to excel
speadsheet. I'm generating some table containing raports

and other tabular
data and I need some way to export it to excel and maybe

to acces. Can
anyone give me some clues? I'v tried to change content of

page to
application/excel (or something like this - don't

remember right now), it
works for some data, but for larger or more complex

tables it ends up with
'unable to open file' error. I was wondering what causes

that. Maybe some
rowspans or nested tables?

--
Regards
Marius
.

Nov 19 '05 #4

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

Similar topics

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....
5
by: Maria L. | last post by:
Hi, I need to export the content of a DataGrid (in Windows application in C#), into an Excel spreadsheet. Anyone knows how to do this? Any code snippets would help! thanks a lot, Maria
2
by: Siu | last post by:
Hi, I use the following code to export and import a file Excel from resp. into a Web page with the following code: //EXPORT Response.Clear(); Response.Buffer = true; Response.ContentType =...
6
by: Elena | last post by:
I'm trying to export data to an Excel worksheet. I can export the data in the cell values perfectly. I need the code to change a header and footer for the worksheet, not for the columns. Is...
13
by: Hemant Sipahimalani | last post by:
The following piece of code is being used to export HTML to excel. HttpContext.Current.Response.ContentType = "application/vnd.ms-excel"...
5
by: Simon | last post by:
Dear reader, With the export command you can export a query to Excel. By activate this command a form pop's up with the following text:
1
by: smaczylo | last post by:
Hello, I've recently been asked to work with Microsoft Access, and while I feel quite comfortable with Excel, I'm at a complete loss with databases. If someone could help me with this issue I'm...
1
by: CoolFactor | last post by:
MY CODE IS NEAR THE BOTTOM I want to export this Access query into Excel using a command button on an Access form in the following way I describe below. Below you will find the simple query I am...
3
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I have a question for you. I have a .csv file which has many lines of data. Each line has many data fields which are delimited by ",". Now I need to extract part of data from this...
2
hemantbasva
by: hemantbasva | last post by:
Note We need to have a template on server for generating report in multiple sheet as we do not had msoffice on server moreover this require a batch job to delete excel file created by the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.