Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 07:28 AM
jason
Guest
 
Posts: n/a
Default ADO data into web excel?

Is it possible to write out the contents of a database into an exel-type
spreadsheet within an asp page?

- Jason


  #2  
Old July 19th, 2005, 07:28 AM
Ray at
Guest
 
Posts: n/a
Default Re: ADO data into web excel?

Yes. Simplest way is to just make an ordinary html table with your results,
but send it back as Excel using:

Response.ContentType = "application/vnd.ms-excel"

Ray at work

"jason" <jason@catamaranco.com> wrote in message
news:%23HLvJCPXDHA.2640@TK2MSFTNGP09.phx.gbl...[color=blue]
> Is it possible to write out the contents of a database into an exel-type
> spreadsheet within an asp page?
>
> - Jason
>
>[/color]


  #3  
Old July 19th, 2005, 07:28 AM
Ray at
Guest
 
Posts: n/a
Default Re: ADO data into web excel?

Yeah, it's nice. :] Check out this sample. http://www.darkfalz.com/1085/

Ray at work

"jason" <jason@catamaranco.com> wrote in message
news:ej%23%23MQPXDHA.656@tk2msftngp13.phx.gbl...[color=blue]
> Wow....so I can build an html table via ADO and then convert it into
> excel.....awesome....do you have a simple example I could follow....I am
> struggling to work out whether you mean it will actually be 'displayed' in
> excel format with my asp-html page or whether user has to go extra step[/color]
and[color=blue]
> 'download' into excel formatted page?
>
> Many thanks
> Jason
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:#X#jTEPXDHA.3924@tk2msftngp13.phx.gbl...[color=green]
> > Yes. Simplest way is to just make an ordinary html table with your[/color]
> results,[color=green]
> > but send it back as Excel using:
> >
> > Response.ContentType = "application/vnd.ms-excel"
> >
> > Ray at work
> >
> > "jason" <jason@catamaranco.com> wrote in message
> > news:%23HLvJCPXDHA.2640@TK2MSFTNGP09.phx.gbl...[color=darkred]
> > > Is it possible to write out the contents of a database into an[/color][/color][/color]
exel-type[color=blue][color=green][color=darkred]
> > > spreadsheet within an asp page?
> > >
> > > - Jason
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


  #4  
Old July 19th, 2005, 07:29 AM
Ray at
Guest
 
Posts: n/a
Default Re: ADO data into web excel?

Excel? I assume you have it?

--
Will trade ASP help for SQL Server help


"jason" <jason@catamaranco.com> wrote in message
news:ua933BQXDHA.2620@TK2MSFTNGP09.phx.gbl...[color=blue]
> Hmmm Ray - it seems simple - slap the code above my asp generated db
> table...but...nothing happens! It still justs outputs as plain html.....
>
> ...am I missing something here?
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:eIySBYPXDHA.1480@tk2msftngp13.phx.gbl...[color=green]
> > Yeah, it's nice. :] Check out this sample.[/color]
> http://www.darkfalz.com/1085/[color=green]
> >
> > Ray at work
> >
> > "jason" <jason@catamaranco.com> wrote in message
> > news:ej%23%23MQPXDHA.656@tk2msftngp13.phx.gbl...[color=darkred]
> > > Wow....so I can build an html table via ADO and then convert it into
> > > excel.....awesome....do you have a simple example I could follow....I[/color][/color][/color]
am[color=blue][color=green][color=darkred]
> > > struggling to work out whether you mean it will actually be[/color][/color][/color]
'displayed'[color=blue]
> in[color=green][color=darkred]
> > > excel format with my asp-html page or whether user has to go extra[/color][/color][/color]
step[color=blue][color=green]
> > and[color=darkred]
> > > 'download' into excel formatted page?
> > >
> > > Many thanks
> > > Jason
> > > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in[/color][/color][/color]
message[color=blue][color=green][color=darkred]
> > > news:#X#jTEPXDHA.3924@tk2msftngp13.phx.gbl...
> > > > Yes. Simplest way is to just make an ordinary html table with your
> > > results,
> > > > but send it back as Excel using:
> > > >
> > > > Response.ContentType = "application/vnd.ms-excel"
> > > >
> > > > Ray at work
> > > >
> > > > "jason" <jason@catamaranco.com> wrote in message
> > > > news:%23HLvJCPXDHA.2640@TK2MSFTNGP09.phx.gbl...
> > > > > Is it possible to write out the contents of a database into an[/color]
> > exel-type[color=darkred]
> > > > > spreadsheet within an asp page?
> > > > >
> > > > > - Jason
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


  #5  
Old July 19th, 2005, 07:29 AM
jason
Guest
 
Posts: n/a
Default Re: ADO data into web excel?

Ok - the problem was I need to call the page rather than just refreshing the
browser....when I did this it loaded as excel - thanks....


"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:#9tBEXUXDHA.2592@TK2MSFTNGP09.phx.gbl...[color=blue]
> Excel? I assume you have it?
>
> --
> Will trade ASP help for SQL Server help
>
>
> "jason" <jason@catamaranco.com> wrote in message
> news:ua933BQXDHA.2620@TK2MSFTNGP09.phx.gbl...[color=green]
> > Hmmm Ray - it seems simple - slap the code above my asp generated db
> > table...but...nothing happens! It still justs outputs as plain html.....
> >
> > ...am I missing something here?
> >
> > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> > news:eIySBYPXDHA.1480@tk2msftngp13.phx.gbl...[color=darkred]
> > > Yeah, it's nice. :] Check out this sample.[/color]
> > http://www.darkfalz.com/1085/[color=darkred]
> > >
> > > Ray at work
> > >
> > > "jason" <jason@catamaranco.com> wrote in message
> > > news:ej%23%23MQPXDHA.656@tk2msftngp13.phx.gbl...
> > > > Wow....so I can build an html table via ADO and then convert it into
> > > > excel.....awesome....do you have a simple example I could[/color][/color][/color]
follow....I[color=blue]
> am[color=green][color=darkred]
> > > > struggling to work out whether you mean it will actually be[/color][/color]
> 'displayed'[color=green]
> > in[color=darkred]
> > > > excel format with my asp-html page or whether user has to go extra[/color][/color]
> step[color=green][color=darkred]
> > > and
> > > > 'download' into excel formatted page?
> > > >
> > > > Many thanks
> > > > Jason
> > > > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in[/color][/color]
> message[color=green][color=darkred]
> > > > news:#X#jTEPXDHA.3924@tk2msftngp13.phx.gbl...
> > > > > Yes. Simplest way is to just make an ordinary html table with[/color][/color][/color]
your[color=blue][color=green][color=darkred]
> > > > results,
> > > > > but send it back as Excel using:
> > > > >
> > > > > Response.ContentType = "application/vnd.ms-excel"
> > > > >
> > > > > Ray at work
> > > > >
> > > > > "jason" <jason@catamaranco.com> wrote in message
> > > > > news:%23HLvJCPXDHA.2640@TK2MSFTNGP09.phx.gbl...
> > > > > > Is it possible to write out the contents of a database into an
> > > exel-type
> > > > > > spreadsheet within an asp page?
> > > > > >
> > > > > > - Jason
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles