General information
Title:
Opening a Word doc in asp
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only