Article ID: 301044 - View products that this article applies to.
This article was previously published under Q301044
This step-by-step article discusses how you can create a text-based document with Active Server Pages (ASP) and stream the document to the client using an Office Multipurpose Internet Mail Extensions (MIME) type. The text-based format demonstrated in this article is HTML and the document is displayed by using the Excel and Word MIME types. There are several text-based formats that you can use to create Office documents using the same technique presented in this article.
You can create text-based documents for Excel by using the following formats:
How to Create the Script
How to Run the Script
How to Try It AgainNext, modify the script so that the the document opens in Word instead of Excel:
ToubleshootingUsing a text-based format for your Office documents can provide a solution on your Web server that is very scalable and provides good performance. A disadvantage of using text-based formats is that you are limited in the Office features that you can use. Some developers may choose to use Automation for Office document creation; although Automation in a client-side environment gives you the greatest flexibility in exploiting all the features that are available in Office, it can generate some problems for a server-side application. If you find that using a text-based document format does not deliver the level of document creation you need, you may want to see the following Knowledge Base article to determine if Automation might be a solution that is right for you:
(http://support.microsoft.com/kb/257757/EN-US/ )INFO: Considerations for Server-Side Automation of Office
For more information, see the following Microsoft Developer Network (MSDN) Web site:
Microsoft Office Development with Visual Studio
Article ID: 301044 - Last Review: January 17, 2007 - Revision: 5.1
Contact us for more help
Connect with Answer Desk for expert help.