473,322 Members | 1,755 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,322 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 1612
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
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.