Information générale
Titre:
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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement