HighDots Forums  

Open Data from DW in MS Excel

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Open Data from DW in MS Excel in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
coil
 
Posts: n/a

Default Open Data from DW in MS Excel - 08-20-2004 , 12:20 PM






Have data displayed from a db in Dreamweaver and need that data to be opened in MS excel. How do I call excel from dreamweaver to open the page in excel?

Grazie!

Reply With Quote
  #2  
Old   
Alan
 
Posts: n/a

Default Re: Open Data from DW in MS Excel - 08-20-2004 , 12:25 PM






could you clarify what you need to do??

Do you want to generate an Excel compatible file (on the server, on the fly
from data in the db) that the website visitor will download and open in
their copy of Excel on their computers??

what scripting on the server, what db type?



Quote:
Have data displayed from a db in Dreamweaver and need that data to be opened
in MS excel. How do I call excel from dreamweaver to open the page in excel?


Reply With Quote
  #3  
Old   
coil
 
Posts: n/a

Default Re: Open Data from DW in MS Excel - 08-20-2004 , 12:40 PM



yes. data dipsplyed on a web page and i want the user to be able to open it in
excel by a "open in excel link". on intranet and all users have it. we are
running on win 2000 and the database is in access. I am workign with ASP VB
script.


Reply With Quote
  #4  
Old   
cmbergin
 
Posts: n/a

Default Re: Open Data from DW in MS Excel - 08-20-2004 , 03:21 PM



If you just need a single worksheet, it only takes one line of code.

At the top of your page, right after the <%@LANGUAGE bit, put
<%
Response.ContentType = "application/vnd.ms-excel"
%>

Then, be sure your data is in an HTML table. Unfortunately, Excel doesn't
support CSS, so you'll have to revert to the bad way if you want pretty
formatting.

There are other, more powerful methods if this one is too basic for your
needs. They just require more work, and I'm far too lazy for that.


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.