Export Excel Report from ASP Output (Dynamic Stage)

S

shankumar

Hai Evrybody,

I have one problem, that is i design a ASP report getting data from MS
SQL Server 2000 and displays it as a desinged format and also "one
option to export this same format to MS EXCEL". Before i seen it, but i
dont know its code. pls anybody tell or sent the its codings pls


my Mail Id :

(e-mail address removed)
(e-mail address removed)

pls pls pls pls pls pls
pls pls pls
pls pls pls
 
V

visu

shankumar said:
Hai Evrybody,

I have one problem, that is i design a ASP report getting data from MS
SQL Server 2000 and displays it as a desinged format and also "one
option to export this same format to MS EXCEL". Before i seen it, but i
dont know its code. pls anybody tell or sent the its codings pls


my Mail Id :

(e-mail address removed)
(e-mail address removed)

pls pls pls pls pls pls
pls pls pls
pls pls pls


<%
Response.AddHeader("Content-type","application/x-msdownload;application/excel")
Response.AddHeader("Content-Disposition","attachment;filename=filename.xls")
%>

use above lines for outputing data in excel format..
the above two line makes the browser to open a window to ask for save
or open an excel file..
then u concatenate ur table values to the structure what i gave below.
<%

strData="<table><tr><td>v1</td><td>v2</td><td>v3</td><td>v4</td><td>v5</td></table>"

response.write strData

%>
here v1 , v2 are values of a field of table

hope this will help u..

visu
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top