Is it possible to determine whether Excel is running in 32-bit or 64-bit from the Microsoft.Office.Interop.Excel.ApplicationClass?
Edit
The solution should work for both Excel 2010 and Excel 2007
相关问题
- Generic Generics in Managed C++
- How to Debug/Register a Permanent WMI Event Which
- 'System.Threading.ThreadAbortException' in
- Bulk update SQL Server C#
- Excel sunburst chart: Some labels missing
This code should give you the "bitness" of Excel.
EDIT: here is another version that should work for previous versions of Excel as well. Just pass an ApplicationClass reference to it: