Version of MS Office

Results 1 to 2 of 2

Thread: Version of MS Office

  1. #1
    Join Date
    Dec 1969

    Default Version of MS Office

    To create Charts "on fly" I use office web component (Server.CreateObject("OWC.Chart")). But this is OK if Office 2000 was installed on web server. Let say, Office 2003 is installed and this will result in: Server.CreateObject("OWC11.Chart"). Is it possible to figure out Office version installed on web server?<BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: Version of MS Office

    Yes it is possible, but the only possibility in ASP would be simply to try to create the object:<BR><BR>On Error Resume Next<BR>Set objChart = Server.CreateObject("OWC.Chart")<BR>If Err.Number &#060;&#062; 0 Then<BR> &#039; error: OWC.Chart not available: try OWC11.Chart<BR> Set objChart = Server.CreateObject("OWC11.Chart")<BR> If Err.Number &#060;&#062; 0 Then<BR> &#039; also not available...<BR> Set objChart = Nothing<BR> End If<BR>End If<BR><BR>...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts