473,805 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP Creating word documents(conte nt-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.AddHea der "Content-Disposition", "attachment ;
filename=yourfi lenamehere.doc"
#2-With Response.AddHea der "Content-Disposition", "inline;
filename=yourfi lenamehere.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 2622
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.AddHea der "Content-Disposition", "attachment ;
filename=yourfi lenamehere.doc"
#2-With Response.AddHea der "Content-Disposition", "inline;
filename=yourfi lenamehere.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.AddHea der "Content-Disposition", "attachment ;
filename=yourfi lenamehere.doc"
#2-With Response.AddHea der "Content-Disposition", "inline;
filename=yourfi lenamehere.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
8030
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 by changing the content type in the response object. On one of the screens where they enter data, they also have the ability to upload a word document containing additional information. This is also not a problem, and is working fine. Now they...
2
1709
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
4373
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. Of those 40 employees, they are divided by 3 supervisors. I need to automatically create a word doc, one for each supervisor, that lists all of there respective employees. Is there a way to do this??? Thank you!
2
1602
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: System.UnauthorizedAccessException: Access is denied. The ASP.NET process is not authorized to access the requested resource. For
12
4171
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" Response.AddHeader("content-disposition", "inline; filename=BP_CaseStatus.doc") Now all I should have to do is create the page just like I would if I were going to display it in the browser.
1
1401
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. I have heard this is due to the ASPNET user never having openedword before and it is subsequently prompted by word for ausername and password dialog, which obviously ASPNET canthandle. I can actually hear the system beep as the dialog iscalled in...
4
2695
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 the final output as a Word document. I know there are different options to do this. But I can't decide which one I should use. I don't want to use automation on the server because of scalability issues and it is not recommended by Microsoft. So I am...
1
3965
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: http://www.dotnetspider.com/Technology/KBPages/587.aspx http://www.codeproject.com/aspnet/wordapplication.asp But if I follow the instructions provided in the second tutorial I just end up with the error: C:\myDir\myWebPage.aspx.cs(69): The type or namespace name...
0
1516
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 the document that has been created, the right border does not print, so I've been trying to put in different values and I get an error on all values I've tried other than 24. Does anyone have an idea of what I'm doing wrong? Dim Word As Object...
3
1759
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 implication require office to be installed on the server). Am I right in assuming that using Automation to generate word documents is a bad idea for a webserver? I've always had the impression that with Excel the single threaded nature of it meant...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10369
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10109
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5544
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3847
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.