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

Launching Word Client-Side

Can someone post the needed code that will allow me to launch word on the
client PC and have the filename specified as a variable. I have been working
on this and can't find any clear documentation that gives me what I need.
Thanks, Jason
Jul 22 '05 #1
2 1726
From a browser? You don't. You can use Response.BinaryWrite
to write a file on your web server to the browser but you don't
get to open up a local file on the PC via a browser for
security reasons.

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.masterado.net

Earn $$$ money answering .NET Framework
messageboard posts at EggHeadCafe.com.
http://www.eggheadcafe.com/forums/merit.asp

"Jason Steeves" <Ja**********@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
Can someone post the needed code that will allow me to launch word on the
client PC and have the filename specified as a variable. I have been
working
on this and can't find any clear documentation that gives me what I need.
Thanks, Jason

Jul 22 '05 #2
Robbe.

If I use an html link to open a word document word will open this file on
the server with the clients word, as the client has a file association setup
for .doc to utilize word. I need to replicate this for a file type that does
not have a file association for word EX: getting test.txt to open with word
instead of notepad on the clients PC. Is there a way I can specify what
application to use to open the file I pass it? Thanks again for your
help.........Jason

"Robbe Morris [C# MVP]" wrote:
From a browser? You don't. You can use Response.BinaryWrite
to write a file on your web server to the browser but you don't
get to open up a local file on the PC via a browser for
security reasons.

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.masterado.net

Earn $$$ money answering .NET Framework
messageboard posts at EggHeadCafe.com.
http://www.eggheadcafe.com/forums/merit.asp

"Jason Steeves" <Ja**********@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
Can someone post the needed code that will allow me to launch word on the
client PC and have the filename specified as a variable. I have been
working
on this and can't find any clear documentation that gives me what I need.
Thanks, Jason


Jul 22 '05 #3

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

Similar topics

1
by: James Grant | last post by:
I have an app that launches MSWord for a report sequence. Some installs have word open and minimzed on the task bar. Some installs have word maximized on screen. Is there a way I can force it (my...
1
by: David | last post by:
Hello. I've written a page for an intranet that gives the user the option of launching a Word or PowerPoint document. The code I used to force the hyperlink to launch the application rather...
4
by: Danny | last post by:
Hello again I have two quesitons about launching IE from code in access. Is there a way to do the shell command to launch IE without having to know the exact path. shell seems to be picky and...
3
by: Susan Bricker | last post by:
Greetings. I have a command button that, when clicked, opens up an instance of MS/Word and opens a document (the filename is the input argument to the function that is kicked off"). This works...
3
by: Waldy | last post by:
Hi there, I have followed the steps in the MS article 288367 to enable Word to run from a web page. I have done this several times and it has worked OK. However, at a customer site I am getting...
0
by: Sheila | last post by:
I have set up a Word mail merge document of the type Directory which allows me to display all of the records on a single page rather than putting each record on a separate page. It uses a...
0
by: Niyazi | last post by:
Hi, I created application that store the data in SQL SERVER that reside on network. The client also use this application to access the resources provided with application. But is the client want...
5
by: Bob | last post by:
I'm getting error 8007007e when executing the following code. Dim word As New Microsoft.Office.Interop.Word.Application Dim doc As Microsoft.Office.Interop.Word.Document doc =...
1
by: =?Utf-8?B?TWFyayBIb2xsYW5kZXI=?= | last post by:
Hi All, I am trying to launch an application based on the extension just like windows explorer does, specifically with regards to templates. For example, 1. When you double click on a word...
0
by: SteelNetNob | last post by:
I am having a problem where I have a COM application that can be run stand-alone and programatically via COM interop. If an instance of the COM application is being run when my .NET application that...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
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
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
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...

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.