Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening a Word doc in asp
Message
From
18/10/2001 09:19:42
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Opening a Word doc in asp
Miscellaneous
Thread ID:
00570198
Message ID:
00570198
Views:
47
Hi,
I've got a proplem: I want to open a word doc in my browser that comes from a server.
My code is:

serverside script begins
response.ContenType = "application/msword"
response.Addheader "content-disposition", "inline; filename=test.doc"
response.buffer = true
serverside script ends
serverside script begins
teststring = long string>
response.binarywrite teststring
serverside script ends

It works ok, except word can't open the file....
It's logical because the characterset the file is saved in puts a character after each one I save (that's what I think).

How can I set the characterset so that my file can be opened in word directly?

TIA ET
Reply
Map
View

Click here to load this message in the networking platform