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

How to determine whether excel is installed on the system or not

Hi,
In my application I need to determine whether Excel is
installed on my system or not.
Can anybody tell me how to check that.

Thanks,
Shravan.
Nov 15 '05 #1
2 1518
Hi Shravan,

You can try creating an Excel Application object instance via
COM Interop, late-binding via its prog ID "Excel.Application".
- Do this within a try-catch block.
If an exception is thrown, its likely that Excel is not
installed in the machine.

Checking the registry for the appropriate keys would be another
way to do it - Maybe check for the presence of the
HKEY_CLASSES_ROOT\Excel.Application key.

Regards,
Aravind C
"Shravan" <sh**********@semanticspace.com> wrote in message
news:0b****************************@phx.gbl...
Hi,
In my application I need to determine whether Excel is
installed on my system or not.
Can anybody tell me how to check that.

Thanks,
Shravan.

Nov 15 '05 #2
It's probably better to check the registry since Excel XP and higher can
still throw an exception if certain permissions aren't granted to allow you
to do automation.

"Aravind C" <ar***********@nospam.hotmail.com> wrote in message
news:e3**************@TK2MSFTNGP12.phx.gbl...
Hi Shravan,

You can try creating an Excel Application object instance via
COM Interop, late-binding via its prog ID "Excel.Application".
- Do this within a try-catch block.
If an exception is thrown, its likely that Excel is not
installed in the machine.

Checking the registry for the appropriate keys would be another
way to do it - Maybe check for the presence of the
HKEY_CLASSES_ROOT\Excel.Application key.

Regards,
Aravind C
"Shravan" <sh**********@semanticspace.com> wrote in message
news:0b****************************@phx.gbl...
Hi,
In my application I need to determine whether Excel is
installed on my system or not.
Can anybody tell me how to check that.

Thanks,
Shravan.


Nov 15 '05 #3

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

Similar topics

9
by: hari krishna | last post by:
hi, I want to send the data from dataset information to Excel through ASP.Net. there will be no XL installed on web server. web server is win 2000 server machine. I am using visual basic code in...
8
by: DC Gringo | last post by:
I have a simple button that should open another window and export a datagrid to an Excel file. I'm getting: "Name 'window' is not declared." What do I need to declare or import? <INPUT...
3
by: DC Gringo | last post by:
Allison (or others), thank you for the advice...a few more questions: - I have tested on my workstation on Excel XP and my application references the Excel 10.0 Object Library. I was told the...
16
by: LP | last post by:
Hello, I am trying to use .NET with Excel. I installed Office 2003 and selected ..NET programming suport option, so it installed all those PIA, as MS sugests. But I can not find a way to destroy...
3
by: Benny Raymond | last post by:
I get the following error message when trying to use the Excel Interop on my wife's machine however I don't get it on my own - we have the same version of Office installed - what could be the...
10
by: Steve | last post by:
I am trying to create a DLL in Visual Studio 2005-Visual Basic that contains custom functions. I believe I need to use COM interop to allow VBA code in Excel 2002 to access it. I've studied...
3
by: balakrishnan.dinesh | last post by:
hi frnds How to determine the version of the MSXML installed on a computer and How to determine the version of the MSXML used by Internet Explorer through javascript code. Can anyone say me ,...
0
by: thought.contagion | last post by:
I need to determine if Excel 2007 is installed. For Office 2003, we had the component ID for Excel 2003 and could use the msi.dll to enumerate and that would tell us if it was installed: iRet...
12
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post by:
I am writing a web app to be widely distributed where I do not know the installed .NET Framework version. I want to take advantage of some .NET 3.0 classes if they are installed, but gracefully...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...
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...

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.