473,394 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ASP Creating word documents(content-disposition)

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
2 2599
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Kerri McDonald | last post by:
We have an application where the user fills out many screens and when they are done, we are supposed to display the text they entered in a word or excel format. That is fairly easily accomplished...
2
by: QQ | last post by:
I wanted to know how to make a properly formated word document from asp. Can some one direct me to all the propertise of CreateObject("word.application"). Thanks!
6
by: Fred Glickman via AccessMonster.com | last post by:
I need to find a way to automatically create several Word docs from 1 access query. Example: I have a query which has 40 records in it according to my criterea. Let's say that it is employees....
2
by: Arvind P Rangan | last post by:
Hi all, trying to create word document using following syntax in c# private Word.ApplicationClass oWordApp = new Word.ApplicationClass(); Application throws error as : Exception Details:...
12
by: enak | last post by:
I have found some code that shows how to convert an html form to Word. The message said to simply put the following in the Page_load: Response.ContentType = "application/ms-word"...
1
by: matthew rutherford via .NET 247 | last post by:
When I use the word automation object (registered word10 andusing the namespace in the .cs file) I get 'access denied' error when trying to run the thing on mylocal pc. I am using the ASPNET user....
4
by: Nikhil Patel | last post by:
Hi all, I need to generate a word document and save it on the server from an ASP.Net application. Basically I want to load a word template and insert some field values from a dataset and save...
1
by: Novice | last post by:
Hi all, I'm using C# in my ASP.NET application and cannot seem to access the MS word libraries to create a word document for some reason. I have used both of these tutorials:...
0
by: Eagle | last post by:
I am trying to change the linewidth of a page border, and keeping getting an error at the "wdLineWith075pt" For some reason, it only accepts the value of 24 like the left border. Yet when I print...
3
by: Brian Cryer | last post by:
A project I'm about to start on has a requirement to create word documents on the fly for download from the website. To date all the code examples I've found on the net use automation (and by...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.