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

Launching applications based on extension

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 template, it loads word with a new
document based on the template you clicked on. Extension: dot

2. When you double click on a excel template, it loads a new spread sheet
based on the template you clicked on. Extension XLT

3. When you double click on a visio template, it loads a new visio document
based on the template you clicked on. Extension VST
and so on,

When I checked on the extension types in Windows explorer I noticed that
they where using a DDE message to achieve this with the keyword new.

Does anyone have a coding example that will do the same thing
--
Thank you
Mark Hollander
VB.NET Newbie (For the moment)
Oct 6 '08 #1
1 1459
On Oct 6, 4:46*pm, Mark Hollander
<MarkHollan...@discussions.microsoft.comwrote:
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 template, it loads word with a new
document based on the template you clicked on. Extension: dot
2. When you double click on a excel template, it loads a new spread sheet
based on the template you clicked on. Extension XLT

3. When you double click on a visio template, it loads a new visio document
based on the template you clicked on. Extension VST

and so on,

When I checked on the extension types in Windows explorer I noticed that
they where using a DDE message to achieve this with the keyword new.

Does anyone have a coding example that will do the same thing
--
Thank you
Mark Hollander
VB.NET Newbie (For the moment)
Hi,
If you have Office installed, i mean, if file types are associated
previously, based on my understanding, you are not looking for
anything other than simply launching the file using:

System.Diagnostics.Process.Start("c:\excel_templat e.xls")
....or any other file.

Like in the example above, behind the scenes, when you double-click on
"excel_template.xls" file in Windows Exploer, the filename is passed
as argument to Excel.exe and Excel is launched by getting that
filename argument.

Hope this helps,

Onur Güzel
Oct 6 '08 #2

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

Similar topics

52
by: Harlan Messinger | last post by:
Can you help me figure out what to do about popups? Sometimes we develop web applications where popups make very good sense for precisely the same reasons they make sense in traditional...
3
by: Brad Jones | last post by:
Hello, I'm hoping someone can give me some help or guidance here. I'm not sure if this is even the best group to post to for this. Our OEM equipment's software architecture relies heavily on a...
385
by: Xah Lee | last post by:
Jargons of Info Tech industry (A Love of Jargons) Xah Lee, 2002 Feb People in the computing field like to spur the use of spurious jargons. The less educated they are, the more they like...
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...
1
by: Brian Henry | last post by:
Just thought maybe someone here would like to know this. It's an example code I just created quickly on how to figure out the name of a type of file based on its extension (say for example .DOC)...
1
by: John A. Bailo | last post by:
Excuse the novice aspects of this question, but: What techniques are available to me for launching one c# application ( console .exe) from another? For example, I know there is the Process and...
1
by: theFLY | last post by:
Folks I have an application that lists the contents of a folder located on a server. I display these file names in a data grid which the user is able to click on to open a word or pdf document. The...
0
by: Toon Knapen | last post by:
Dear all, I'm looking into launching python in parallel using MPI. There are many projects already doing this but I would like to understand how this can be done in a portable way. For...
8
by: =?iso-8859-1?B?QW5kcuk=?= | last post by:
I would like to find out how I can launch an independent Python program from existing one in a cross-platform way. The result I am after is that a new terminal window should open (for io...
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: 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...
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
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
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.