By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,224 Members | 1,233 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,224 IT Pros & Developers. It's quick & easy.

ASP Creating word documents(content-disposition)

P: n/a
Tom
I have tried three ways of opening word documents on my win95 machines.
(Yes, my client still has some win95 machine)
#1-With Response.AddHeader "Content-Disposition", "attachment;
filename=yourfilenamehere.doc"
#2-With Response.AddHeader "Content-Disposition", "inline;
filename=yourfilenamehere.doc"
#3 without the content-Disposition header.

#1 is not good because it forces the user through two dialogs.
#2,#3 seem good because they open the document in IE,
but the window does not have the corresponding document toolbar,
so the user can not saveAs xxx.doc

How can I accomplish # 2 or #3 with IE showing a word document toolbar?
TIA--
Tom

Feb 23 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Tom wrote:
I have tried three ways of opening word documents on my win95
machines. (Yes, my client still has some win95 machine)
#1-With Response.AddHeader "Content-Disposition", "attachment;
filename=yourfilenamehere.doc"
#2-With Response.AddHeader "Content-Disposition", "inline;
filename=yourfilenamehere.doc"
#3 without the content-Disposition header.

#1 is not good because it forces the user through two dialogs.
#2,#3 seem good because they open the document in IE,
but the window does not have the corresponding document toolbar,
so the user can not saveAs xxx.doc
He can still use File>Save As can't he?

How can I accomplish # 2 or #3 with IE showing a word document
toolbar?


This is controlled on the user's machine. there is no way to control this
from asp server-side code.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Feb 23 '06 #2

P: n/a
Tom
Nope....The window header area only contains the document ruler,
nothing else. No toolbars/menus at all.
--
Tom
"Bob Barrows [MVP]" wrote:
Tom wrote:
I have tried three ways of opening word documents on my win95
machines. (Yes, my client still has some win95 machine)
#1-With Response.AddHeader "Content-Disposition", "attachment;
filename=yourfilenamehere.doc"
#2-With Response.AddHeader "Content-Disposition", "inline;
filename=yourfilenamehere.doc"
#3 without the content-Disposition header.

#1 is not good because it forces the user through two dialogs.
#2,#3 seem good because they open the document in IE,
but the window does not have the corresponding document toolbar,
so the user can not saveAs xxx.doc


He can still use File>Save As can't he?

How can I accomplish # 2 or #3 with IE showing a word document
toolbar?


This is controlled on the user's machine. there is no way to control this
from asp server-side code.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Feb 23 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.