Open file in its associated program

There is a hyperlink to files. If the link is clicked the file should be opened in associated program.

For example if the link is a doc file then MS word should be open and doc file should be displayed.
Any help..?
Thanks
Jijo
0
jijo_robert
3/17/2004 7:36:23 PM
asp.net.web-forms 93655 articles. 3 followers. Follow

7 Replies
287 Views

Similar Articles

[PageSpeed] 35

http://www.microsoft.com/office/000/viewers.asp
Answering a question increases your knowledge asking a question shows your Intelligence!
0
FancyKetsup
3/17/2004 8:09:49 PM
As long as your clients have the proper applications installed with the proper file associations it should work. I have links to files and they all open up properly in their respective apps.
0
afelicetti
3/17/2004 8:10:42 PM
I want to Open MS word application and open the word document in it. All clients will have MS word loaded in their machine.

Similarly if it is a excel file, then I want to open the MS Excel and open the excel spread sheet in excel.

Thanks
Jijo
0
jijo_robert
3/18/2004 5:24:57 PM
I used this code to call doc file. In the task manager the winword.exe is running but there is not word application opens.

Process myProcess = new Process();
string myDocumentsPath =
Environment.GetFolderPath(Environment.SpecialFolder.Personal);
myProcess.StartInfo.FileName = myDocumentsPath + "\\Doc1.doc";
//myProcess.
//myProcess.StartInfo.Verb = "Print";
//myProcess.StartInfo.cre = true;
myProcess.Start();
Looks like it is hung.
Thanks
Jijo
0
jijo_robert
3/18/2004 6:21:03 PM
As the others said above, all you have to do to open a file is to point the URL of a window to the file you wish to open on the server.  If the user has the application associated with that file on their machine it will open automatically.  You do not need to deal with processes..
0
jjmeyer
3/18/2004 7:02:19 PM
It is showing me with dialog box to open , save , cancel. I don't want to see this dialog box,instead I want to open word, and load the file.

Even If I select Open dialog box it will open in IE window, but I don't want to happen.
Thanks
Jijo.
0
jijo_robert
3/22/2004 7:30:07 PM
Jijo-

just a though about this. Did you try messing with your IE security settings. Maybe you have it set somewhere in there to prompt when opening a file instead of just opening it. Try taking a look at that under the IE menu bar --> tools --> Internet Options
Let me know what happens
0
afelicetti
3/22/2004 9:11:58 PM
Reply:

Similar Artilces:

how to open .exe file in a web form in vb.net?
hi, Are there any one who know to open .exe file from a web form application? make a link like: My Exe ...

HOW DO I
I want to open a file in reponse to a button click. The file might be a Word document or a PDF file, etc. I want the appropriate application to open the file based on the file type. Is there an easy way to do this in PB? If so, I can't find it. Thanks for any help! YEs, it's easy. You have to use ShellExecute external API function with "Open" keyword. It will open for you any file that it's extension is registered in the system. "Jim Steil" <jim.steil@customcall.com> wrote in message news:zUNpFyYPCHA.77@forums.sybase.com... > I want...

Opening files from a web form
Hey there, What I want to do is have  list box which displays all the files in a folder on the server and then the user can double click on them, or click on them and click a button and open them! atm I have the files displaying using   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim windir As String Dim file As String windir = ("C:\Inetpub\wwwroot\Fileviewtest\Data") Me.ListBox1.Items.Clear() Dim files() As String = Directory.GetFiles(windir) For Each file In files Me.ListBox1.Items.Add(System.IO.Path.GetFil...

Opening a File in a Web Form
Good Morning,I need some assistance with an assignement i need to accomplish the next couple of days. I need to in a web form select a file and have some informations about the file being visible by the code in the web form. What component can i use, or what classes to upload a file?? thks PipiMeiasAltas--Regarding this... PipiMeiasAltas wrote:...I need some assistance with an assignement i need to accomplish the next couple of days. I need to in a web form select a file and have some informations about the file being visible by the code in the web form. What component can i use, or w...

file open dialog in web forms
hi! i am looking for a file open dialog. i know there is one in window forms, but is there one also in web forms? thanx Is this what you are looking for? <INPUT type="file"> Rules at work:1) Boss is always right2) If Boss is wrong; refer rule #1 ye! thanx, i just forget how it's called...

Open web page in IE and populate fields on the form from my web form
To the dot net Knights.  Many humble thanks in advance from a dot net surf. We have an vb application that opens multiple instances of IE object, each to different web pages.  It then takes information from the current record in the app, populates fields on each of the web pages, and them submits the forms.  We are then able to look at the resulting web pages and quickly get the info we're looking for.This prevents us from having to manually navigate to each web site, enter the same information and then wait for the page to open.  If there is ...

Implementing .Net Form into an APS.net web form, can this be done
I am new here, but have been searching for a while, and may not have the correct lingo to find what I am looking for.  I am tasked with implementing a .exe application that was writen vb6 then converted to .net into a new website my team is developing. The idea is to put each of the 3 different forms in this .exe application of 3 different .aspx pages. I have attempted multiple things to get this into the page and even started to just rewrite it as an ASP.net web form, but even then I can't reuse any of the code since the System.Web.UI.Page doesn't inherit the sa...

WEB FORMS and datasetS (do I have to repeat the file definition in every web form?)
I am working on vb.net.I have a project with 35 web forms and an access file with 18 tables.Until now I have defined the oledbadapters in every form by dragging the tables from the server explorer tool box.This is not a good idea because every time that I make a change on the database design I have to drag the new definition on 35 web forms and I have to create the datasets again. This is boring and time consuming!The question is:WHAT CAN I DO TO HAVE THE FILE DEFINITION ONLY IN ONE PLACE AND THAT EVERY WEB FORM WOULD TAKE THE DATA ADAPTERS AND DATASETS FROM THERE? how about if you write a...

Reading Excel Files from a .Net Web Form
Hi, This might be a dumb question, but ... When reading an Excel file from a .Net Web Form, is it necessary to have Microsoft Excel actually installed on the client machine running the web form? Also, do the Excel files being read need to be saved as "values only" or can the values be extracted from a spreadsheet where the cells contain formulas? Thanks. -Wayne Hi, For the 1st part, Office is not necessary to be installed. But Download the Office XP PIAs and use them to develop Office XP solutions with Visual Studio .NET. For 2nd Part I think you need to use Values.Regar...

How to open files with default programs?(Web C#)
My problem: When I used "Process.Start()" to open files(like .doc), but no any frame opened. When I checked the process, winword.exe was acturaly runing. Why? Searched from Google, someone said modify the IIS and Asp.net Account configuration may solve. But I did so, the process also runed, no frame opened yet. How to solve this problem? code:  ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName="winword.exe";  startInfo.Arguments=@"c:\07.doc";  startInfo.WindowStyle=ProcessWindowStyle.No...

SAVING THE WEB FORM AS .PDF FILE THROUGH PROGRAM
can u plz tell me how to save the webpage(.aspx) as .pdf file through asp.net2.0/c# program. my requirement is i have a dropdown list where all the emp names are there by selecting the ddl name and clicking the button automatically one webpage will be displayed which consists of the payslip page which will be automatically generated by coding, then i want to save this pay slip at one folder in server adv thanks.... Hi, I have found the following class library useful when createing and manipulating pdf files http://www.pdfsharp.org/PDFsharp/ Hope this helps steer you in the right direc...

how to read a .txt file from .net (web form)
hi, how to read a .txt file line by line and place the contents in a .xls file. ex: if sample.txt file is... Name: abc Company: xyz info ltd. i want abc and xyz info ltd to be cut and saved in .xls file. i already have a .xls template with name and company fields. send solution.......

how to open file from web in .net 1.1?
 I've a really silly question. I'm trying to open the code of a website from .net 2003 say http://nnn.com. How do I files associated with the website and execute it? Basically I want to open all the files in .net so that I can open the entire folder. I'm able to accomplish this from VS 2008 by open file/open/website. I want to do the same thing in 2003. VS2003 does not support the file-based web site project that VS2005 and VS2008 does. In VS2003, you will have to create a new project and then add the existing files to that project.If this post was useful to you, please ma...

opening an associated file in a running instance of a program. [Edit]
Hello, There used to be a forum called 'winapi' but I can't find it anymore, so I'll post my question here. I have a fileextension registered to open with my program. If I doubleclick on such a file my program is opened with that file. But how can I react when when my program is already running? What I've investigated so far is that when my program is already running, it's winmain() isn't even called when I doubleclick on an associated file? Any pointers/help/examples please? ps. I already have a check on a mutex to allow only one instance of my prog, ...

Web resources about - Open file in its associated program - asp.net.web-forms

NY Times Page 1 Editorial: Guns ‘Are Weapons Of War’ and Must Go Now
In “ End the Gun Epidemic in America ,” its first front-page editorial since 1920, The New York Times argues that “It is a moral outrage and ...

Harrison Ford tweet proves that Star Wars spoilers are everywhere you look
Disney and LucasFilm have been careful to avoid spoilers for The Force Awakens — even with the relentless barrage of trailers over the past few ...

Activists go thru 5 stages of grief for the climate change campaign
By Larry Kummer, from the Fabius Maximus website Summary: Climate activists have begun to see the failure of their campaign to get public policy ...

Scott Weiland Dies At 48, Bandmate Arrested For Cocaine Found On Tour Bus
The music world was rocked by the news that former Stone Temple Pilots front-man, Scott Weiland, was found dead on December 3, in Bloomington, ...

Donald Trump interrupted ten times at NC rally
USA TODAY Donald Trump interrupted ten times at NC rally USA TODAY At a rally of around 8,000 in North Carolina Friday night, Trump was interrupted ...

Northern Ireland Court to Rule on Same-Sex Marriage After Christmas
A judge at the High Court in Belfast, Northern Ireland has been hearing arguments for two days challenging the nation’s ban on same-sex marriage ...

Planned Parenthood clinics are open, but on guard
CBS Local Planned Parenthood clinics are open, but on guard Sacramento Bee Bulletproof glass and armed security are nothing new at medical ...

These are the best photos of Pluto you’ll likely see in your lifetime
Behold: the mountainous shoreline of Sputnik Planum. (credit: NASA/JHUAPL/SwRI) Finally, the highest resolution images are in from the edge ...


Texas Admits That It Doesn't Have the Power To Turn Away Syrian Refugees, After All
After announcing from the hilltops that it will not, under any circumstances, no-way-buster, allow any more Syrian refugees to enter its state ...

Resources last updated: 12/5/2015 5:29:46 PM