|
MIME Types for MS-Excel and MS-Word (Free)
ASP Server Behavior for Dreamweaver UltraDev
written by Pete Erwin
March 21, 2002
Overview:
These are nothing fancy, just simple shortcuts to change the MIME Type
or Response.ContentType in your ASP page. Doing so will load the page
in a Web browser as an Excel or Word document. The user can then save
the document as Excel or Word directly from their Web browser.
Disclaimer:
Not all versions & platforms of Web browsers handle MIME types exactly
the same and the user can edit their browser's MIME type configuration.
So it helps to know your audience!
MIME Type for MS-Excel
Instructions:
1) Insert the MIME Type - Excel server behavior
2) Upload page and view in Web browser. Your page should look like an Excel
spreadsheet.
Suggestions:
Create a table with two rows (column names & data) and then map data
bindings from your recordset. Then repeat the rows using UltraDev's Repeat
Region server behavior.
Download Now
(2kb)
Once installed:
Server Behaviors > Assonet River > MIME Type-Excel
View
ASP and HTML code generated using this server behavior extension.
You can copy and paste the code into your ASP page without using UltraDev.
MIME Type for MS-Word
Download Now
(2kb)
Once installed:
Server Behaviors > Assonet River > MIME Type-MS-Word
View
ASP and HTML code generated using this server behavior extension.
You can copy and paste the code into your ASP page without using UltraDev.
Feedback:
Feel free to send us comments & suggestions.
|