473,405 Members | 2,445 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,405 software developers and data experts.

How does IE choose a Word application?

Hi,

This is an odd ball scenario I'm sure. I've got a .Net web page that
streams an XML Word document from memory. The customer didn't want to pay to
upgrade their Word 2000 software to Word 2003, so they have installed the
Word 2003 Viewer on the side. They didn't need edit capability so the viewer
was acceptable. The problem is that when the document is opened by IE, it is
displaying it using Word 2000 so the end users see a big XML string instead
of the formatted document. Is there a way to force IE to use the Word 2003
Viewer? Here is my code for this, I'm hoping that it is just a simple change
to the ContentType or something.

Response.ContentType = "application/msword"
Response.Write(xmlDoc.OuterXml)
Response.Flush()
Oct 27 '05 #1
1 1621
I don't believe the MIME Type (application/msword) supports versioning so
the version on the desktop will launch. You're going to have to get tricky
and put the file into their file system which they can do using File > Save
where it can then be viewed using the viewer. But I would go to somewhere
like news://microsoft.public.office.developer.smarttags to discuss this with
developers who work with Office regularly.
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/


"Dave" <Da**@discussions.microsoft.com> wrote in message
news:DA**********************************@microsof t.com...
Hi,

This is an odd ball scenario I'm sure. I've got a .Net web page that
streams an XML Word document from memory. The customer didn't want to pay
to
upgrade their Word 2000 software to Word 2003, so they have installed the
Word 2003 Viewer on the side. They didn't need edit capability so the
viewer
was acceptable. The problem is that when the document is opened by IE, it
is
displaying it using Word 2000 so the end users see a big XML string
instead
of the formatted document. Is there a way to force IE to use the Word
2003
Viewer? Here is my code for this, I'm hoping that it is just a simple
change
to the ContentType or something.

Response.ContentType = "application/msword"
Response.Write(xmlDoc.OuterXml)
Response.Flush()

Oct 28 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Jaime Rios | last post by:
Hi, I created a COM AddIn for Word that performs the functions that it needs to, but I needed to add the ability for the toolbar created by the COM AddIn to remember it's last position and...
3
by: Bhavya Shah | last post by:
Hello there, I am facing a strange problem. I use office converters for converting Microsoft Word documents to html in my application. I use office automation for the entire process. I open the...
2
by: VP | last post by:
Hi, I am trying to open an existing word document, the execution happens with no error but Word does not come up and my document does not open. This is the code I am using.. ...
8
by: Howard Kaikow | last post by:
I got bored today, so I decided to rewrite the code in KB article 316383 to decrease the number of object references. This resulted in a number of nested With ... End With. The original code had...
5
by: rogsonl | last post by:
My computer was moved last week, and the company changed the network groups we work on. As a result, one of the main benefits from Whidbey (database connectivity) no longer works. Situation: 1....
1
by: Dave | last post by:
Hi, This is an odd ball scenario I'm sure. I've got a .Net web page that streams an XML Word document from memory. The customer didn't want to pay to upgrade their Word 2000 software to Word...
2
by: Max2006 | last post by:
Hi, After I right-click on my web application project file and choose "Publish ." and do the publishing, the result publishable files does not include the *.ashx files. Is it by design? How...
32
by: Stephen Horne | last post by:
I've been using Visual C++ 2003 for some time, and recently started working on making my code compile in GCC and MinGW. I hit on lots of unexpected problems which boil down to the same template...
6
by: josh001 | last post by:
I'm trying to figure out why KeyError: 0 pops up when I try to run the program containing the code. OpenDLG = wx.FileDialog( self.win, message='Please choose...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.