Hi,
How can I list the available actions (and the command line for each action)
for a specific file extension? I am using C# and .NET 1.1
I need that for printing .PDF files (*.PDF files print action), but I would
like to have a general solution for other file extensions and actions.
A link to online resources or source code helps.
Any help would be appreciated,
Alan 7 1202
Hi Alan,
As far as I know, the the .NET framework didn't provide an interface for us
to do this. So wew need to implement it ourselves. The file association
information is saved in the registry. Here, I find a good example for how
to change the extension association. You can download the source code and
make some changes to it.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Hi Kevin,
I think yhou missed the link. Could you include the link?
Thank you
"Kevin Yu [MSFT]" <v-****@online.mic rosoft.com> wrote in message
news:Ss******** ******@TK2MSFTN GXA01.phx.gbl.. . Hi Alan,
As far as I know, the the .NET framework didn't provide an interface for us to do this. So wew need to implement it ourselves. The file association information is saved in the registry. Here, I find a good example for how to change the extension association. You can download the source code and make some changes to it.
Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights."
Thank you!
"Kevin Yu [MSFT]" <v-****@online.mic rosoft.com> wrote in message
news:sH******** ******@TK2MSFTN GXA01.phx.gbl.. . Sorry, Alan, I forgot to include the link. Here is it:
http://www.mentalis.org/soft/class.qpx?id=5
Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights."
You're welcome.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
I opened the CHM file, it is okay.
Did you try another computer?
"-DG-" <-D**@nospam.com> wrote in message
news:8i******** *************** *********@4ax.c om... On Fri, 28 Oct 2005 03:00:37 GMT, v-****@online.mic rosoft.com (Kevin Yu [MSFT]) wrote:
http://www.mentalis.org/soft/class.qpx?id=5
Kevin Yu
Looks very useful. However, I'm not able to open the .chm file. Anyone else? Is there an update to the reader? (hh.exe) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Georgy Pruss |
last post by:
On Windows XP glob.glob doesn't work properly for files without extensions.
E.g. C:\Temp contains 4 files: 2 with extensions, 2 without.
C:\Temp>dir /b *
aaaaa.aaa
bbbbb.bbb
ccccc
ddddd
C:\Temp>dir /b *.
|
by: Mo |
last post by:
Hi all,
I hope that someone out there can help me with a problem I have been having.
I have just finished creating a website and have added a header to most of
the pages on my site. The header is included in each page with the <!--
#include file="myHeader.htm" -->, where myHeader.htm is the header file. The
pages with the include directive all have the file extention ".htm".
The problem is that with the set up above the pages are not...
|
by: Tuvas |
last post by:
I am currently writing an extention module that needs to recieve a list
of characters that might vary in size from 0 to 8. This is written as a
list of characters rather than a string because it's easier to
manipulate. However, when I pass this list of characters into the
extention module, it keeps giving errors. Is there a way to do one of
the following?
A. Change a list of chars to a single string or
B. Read a list of chars in an...
|
by: JD |
last post by:
Hi all,
Can anyone tell me is there a way to get a list of file types either
supported on the server or clients computer and bind it to a drop down list
in C#
Thanks
Jonathan Dixon
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |