Hello all,
Using csharp, how would I get the application name that opens any given
extension?
I'm interoping with Office to provide an in house service to convert office
files to pdf.
Provided a file path, I need to determine if the file is excel, word,
etc...and I don't want to simply
rely on a HashTable of extension keys and application names to accomplish
this.
Any help or direction is greatly appreciated.
Sincerely,
Patrick 3 1459
Hi,
I'm not very clear of what you want from your post, but you can search the
apps mapping by checking the registry.
"Patrick" <pa*****@nospam .comwrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
Hello all,
Using csharp, how would I get the application name that opens any given
extension?
I'm interoping with Office to provide an in house service to convert
office files to pdf.
Provided a file path, I need to determine if the file is excel, word,
etc...and I don't want to simply
rely on a HashTable of extension keys and application names to accomplish
this.
Any help or direction is greatly appreciated.
Sincerely,
Patrick
Yeah, I guess so. HKLM/Classes....Than ks for the input.
"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions .comwrote in
message news:ui******** ******@TK2MSFTN GP06.phx.gbl...
Hi,
I'm not very clear of what you want from your post, but you can search the
apps mapping by checking the registry.
"Patrick" <pa*****@nospam .comwrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
>Hello all, Using csharp, how would I get the application name that opens any given extension? I'm interoping with Office to provide an in house service to convert office files to pdf. Provided a file path, I need to determine if the file is excel, word, etc...and I don't want to simply rely on a HashTable of extension keys and application names to accomplish this. Any help or direction is greatly appreciated.
Sincerely, Patrick
That's not entirely reliable. Your best bet is to create a MIME type table,
such as that used by Internet Information Services. It can be a flat file or
stored in a database.
--
HTH,
Kevin Spencer
Microsoft MVP
Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries: http://www.miradyne.net
"Patrick" <pa*****@nospam .comwrote in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
Yeah, I guess so. HKLM/Classes....Than ks for the input.
"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions .comwrote in
message news:ui******** ******@TK2MSFTN GP06.phx.gbl...
>Hi,
I'm not very clear of what you want from your post, but you can search the apps mapping by checking the registry.
"Patrick" <pa*****@nospam .comwrote in message news:%2******* *********@TK2MS FTNGP02.phx.gbl ...
>>Hello all, Using csharp, how would I get the application name that opens any given extension? I'm interoping with Office to provide an in house service to convert office files to pdf. Provided a file path, I need to determine if the file is excel, word, etc...and I don't want to simply rely on a HashTable of extension keys and application names to accomplish this. Any help or direction is greatly appreciated.
Sincerely, Patrick
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sugapablo |
last post by:
Is there any PHP function that will allow me to determine the MIME type
of a blob stored in MySQL?
Specifically, if I'm storing an image as a blob in MySQL, is there any
PHP function that can determine whether it's a gif, jpeg, png, etc?
--
http://www.sugapablo.com <--music ]
http://www.sugapablo.net <--personal ]
|
by: clevariant |
last post by:
Hello,
I'm tasked with creating a WSDL file that is compatible with .NET's
code gen' tool, wsdl.exe. I'm getting an error in the code output
saying "Missing soap:body input binding", which seems to indicate it
can't find the <soap:body> element where it's looking for it.
We are using the extension <mime:multipartRelated> to define
some SOAP attachements in our interface, and the <soap:body>
element is inside a subelement of that (per...
|
by: Michael Loughry |
last post by:
I'm writing a web application that fetches documents from the server and
sends them to the client. I do this using the Response.BinaryWrite method.
However, is there any way to detect the MIME type of a given file? Or a
catch-all MIME type I could use? These files will likely mainly be word and
pdf documents, but they can conceivably be anything.
|
by: splodge |
last post by:
This may seem like a stupid question but I want to check before I go
ahead and build this...
I am working on a portal, part of which allows users to upload files.
Part of the array within $_FILES superglobal gives the mime type for the
file. Is this 100% reliable / accurate? If the mime type says the file
type is jpeg is it always right? Two reasons I want to know:
1. Certain types of files mustn't be uploaded, .exe files for example....
|
by: mubx2000 |
last post by:
Hi ,
I'm looking for code (Symbian C++) that can do the following things:
1-Analyzing the (MIME) types (Content-typemContent-transfere-encoding,Mime Version,Conent Description).
2-Download attached files from the (MMS/Email).
3-Uploading to email or (MMS) .
4-Dealing with Multi-Part Messages.
Here Is A Methods That Can HelP In doing Decoding:
| |
by: Sandman |
last post by:
Hi there,
So here is the situation I'm in. My PHP script does something like
this:
1. Update a DB (only once)
2. Send some post data to another PHP script (only once)
3. Output some stuff related to 1 and 2.
I've done #2 by using input type="hidden" on a form, like so:
print "<form action='../dir/register.php' method='post'
|
by: Microsoft Newsserver |
last post by:
One of my applications uses the style cursor:url('../images/mycursor.cur');
This can be set on the deploymnet server to serv this Mime type, but it
wont serve it on the local server in 2005.
Does anyone know how I can add this file time to the list of served files ?
Cheers
|
by: amit |
last post by:
Hello group,
I'm uploading some image files such as jpeg, png and gif. However, I
must convert time to jpeg type. I have few questions:
1) Can I convert time in using gd library?
2) Currently, I check the MIME file to see what is holding (thanks to
Michael ) like image/jpg or image/gif or image/png. But what should be
the criteria? I'm checking:
|
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: 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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
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...
| |