Export Excel Report from ASP Output (Dynamic Stage)
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > Export Excel Report from ASP Output (Dynamic Stage)




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Export Excel Report from ASP Output (Dynamic Stage)  
shankumar


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-19-06 06:22 AM

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 :

skumar@jeevaninfotech.com
shankumaran1983@yahoo.com

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






[ Post a follow-up to this message ]



    Re: Export Excel Report from ASP Output (Dynamic Stage)  
visu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-19-06 12:23 PM

shankumar wrote:
> 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 :
>
> skumar@jeevaninfotech.com
> shankumaran1983@yahoo.com
>
> pls pls pls pls pls pls
>  pls pls pls
>  pls pls pls


<%
Response.AddHeader("Content-type","application/x-msdownload;application/exce
l")
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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:42 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register