Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old January 14th, 2005, 08:11 PM
Friend of Wrox
Join Date: Jan 2005
Location: Houston, TX, USA.
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts

Yes, now the dialog box can appear by using the following codes:
set fso = createobject("scripting.filesystemobject")
set objTS = fso.OpenTextFile(docFileName,1)

strFileName = "reportWord.doc"
response.addHeader "Content-type","application/msword" Response.AddHeader "Content-Disposition", "attachment;filename=""" & strFileName & """"

Response.BinaryWrite (objTS.ReadAll)
'''''''''''''''''''''''''''''''''''''''''''''''''' '''''
but when I open the saved file, it's the binary data, I cann't read it, why?????
I also try to use: Set Stream = Server.CreateObject("ADODB.Stream") said like the link: http://www.psacake.com/web/if.asp, but get an error? Is there any way that I can save the word file in the client side, with all the logo/header/footer?



Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP & Excel - Permission denied: 'CreateObject' shamigc Classic ASP Components 1 May 9th, 2006 06:58 PM
error when createobject excel.application vovo Classic ASP Professional 0 February 3rd, 2005 12:29 AM
Server.CreateObject("Outlook.Application") Dave Sell Classic ASP Professional 1 September 4th, 2004 01:44 PM
Word application kekohchaa VS.NET 2002/2003 1 July 1st, 2004 07:14 AM

All times are GMT -4. The time now is 01:56 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.