Export to Excel

M

Magnus Blomberg

Hello!

I have a web page (dotnet framework 2.0) with a datagrid that works just
fine.
When the user has collected the data, and this is present in the datagrid, I
would like to enable a button for export to Excel.
If possible, I would also like the asp code to format the Excel sheet so it
looks the way I want.

I'm new to the concept of exporting to Excel from asp, so please if somebody
knows how to do this, explain the complete procedure.
Is this possible?!?!

Regards Magnus
 
M

Magnus Blomberg

Hi. Thanks I found it
/Regards Magnus

Alvin Bruney - ASP.NET MVP said:
it works the same way as in the current framework, you can write the data
into a datagrid and change the content type to excel so that it formats
correctly in a browser. there are lots of lots of lots of examples about
this on the web.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



Magnus Blomberg said:
Hello!

I have a web page (dotnet framework 2.0) with a datagrid that works just
fine.
When the user has collected the data, and this is present in the
datagrid,
I
would like to enable a button for export to Excel.
If possible, I would also like the asp code to format the Excel sheet so it
looks the way I want.

I'm new to the concept of exporting to Excel from asp, so please if somebody
knows how to do this, explain the complete procedure.
Is this possible?!?!

Regards Magnus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top