473,385 Members | 1,888 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,385 software developers and data experts.

Word/Excel needed??

If i'm using :

Response.ContentType = "application/vnd.ms-excel"

or

Response.ContentType = "Application/msword"
Response.WriteFile(FilePath)

Does the user have to have Word and Excel installed on the client box to
view the files in IE6??
And if so, and they don't have a full version of Word, will this ContentType
fire up the free Word viewer automatically for viewing??

TIA much!

Harry
Nov 17 '05 #1
2 1326
You could specify it as a RTF (rich text) with "application/rtf"

You may want to do a little client-side sniffer.. in a try/catch javascript
function, try to instantiate MS Word or excel (you could look up in the
registry what the progid's are..).. if you can't instantiate a programatic
version - then you know it's not installed and handle it accordingly..

"Harry Simpson" <hs*******@nospamphgt.net> wrote in message
news:ez**************@TK2MSFTNGP12.phx.gbl...
If i'm using :

Response.ContentType = "application/vnd.ms-excel"

or

Response.ContentType = "Application/msword"
Response.WriteFile(FilePath)

Does the user have to have Word and Excel installed on the client box to
view the files in IE6??
And if so, and they don't have a full version of Word, will this ContentType fire up the free Word viewer automatically for viewing??

TIA much!

Harry

Nov 17 '05 #2
It think the Word viewer should take over if Word is not on the machine. You
may run into some security settings on some browsers, depending on the zone.

--
Microsoft MVPs have a question for *you*: Are you patched against the Worm?
http://www.microsoft.com/security/se...s/ms03-026.asp

"Harry Simpson" <hs*******@nospamphgt.net> wrote in message
news:ez**************@TK2MSFTNGP12.phx.gbl...
If i'm using :

Response.ContentType = "application/vnd.ms-excel"

or

Response.ContentType = "Application/msword"
Response.WriteFile(FilePath)

Does the user have to have Word and Excel installed on the client box to
view the files in IE6??
And if so, and they don't have a full version of Word, will this ContentType
fire up the free Word viewer automatically for viewing??

TIA much!

Harry

Nov 17 '05 #3

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

Similar topics

0
by: polymorphick | last post by:
After installing dotnet, Word, Excel, PowerPoint, and Access don't work. The icons are gone. The system doesn't recognize an excel or word file. My OS is Win2000 server. Did dotnet...
4
by: Bob | last post by:
Hi, I am using Office XP PIAs. I want to use Word/Excel to printOut documents w/o bringing up the application at all. When I set the Visible field to false, I still get the printing window...
2
by: selen | last post by:
I want to open Microsoft word, excel and PowerPoint with asp.net and save it. How can I do that? Thanks.........
4
by: Thierry | last post by:
Hello. Is it possible to generate word/excel files in PHP ? with a template file ?... It is possible in Java so I guess it is possible in PHP to. I allready know how to do PDF... Can...
2
by: Yaseen D M | last post by:
I have aspx page which contains some gif, jpg and png images. PNG image is generated dynamically. This file is basically a graph image. The problem i am facing in exporting these images to word,...
1
by: webgirl | last post by:
Hi everyone, I have a weird problem with some Word/Excel automation code that I run from Access (not sure if I should therefore post this in the Access forum..? Thought I'd try here first) ...
1
by: santel | last post by:
Hi, How to check whether the MSOffice files like word, excel, powerpoint are installed in the machine or not? Anyone please help!
2
by: klimmer | last post by:
Hello, I'am used to work with PHP and MySQL on webbased application. I have to make for my colleagues a program that have to follow a few dessistions (path) like a flowchart. The result shood...
0
by: Lyu KingT | last post by:
hi, i need to control the right of a Office document in my Visual Studio Projects, so how to enable or disable the print, what abou edit, save..... i try to fellow the video How Do I: Hi-jack...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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,...

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.