Pop up a javascript window asking them if they have excel installed?

In all honesty, yes, it should be possible.  See this page for a little more
detail, below is an applicable snippet.
http://beta.experts-exchange.com/Web/Web_Languages/ASP/Q_20377059.html

---[ from the above link ]---
Yes, you CAN silently detect Excel on the browser machine.

I happened to be working on this exact problem today, wanting to enable or
disable an "Export to Excel" button depending on whether the client actually
has Excel, without prompting or otherwise bothering the user. My IE security
for Intranet and Trusted Sites is set to Prompt for Unsafe Scripting. The
following client-side code works without triggering a prompt:

Insert a spreadsheet object in HTML:

<object id="oExcel"
 classid="CLSID:0002E510-0000-0000-C000-000000000046"
 style="display:none">
</object>

Call this function somewhere:

function detectExcel()
{
 var obj = document.getElementById("oExcel");
 var sheet = obj.ActiveSheet;
 if (sheet != null)
   // Excel is installed... do whatever
   status = "Excel is installed";
}

-d

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Reply via email to