OWC version sniffer for c# app

R

roger.camargo

Well. i've found this sniffer in one previous message:

Sub CheckForOWC()

Dim objOWC

Dim retval on error resume next

Dim downloadPath downloadPath =
"http://download.microsoft.com/download/OfficeXPStandard/owc10/1033/WI...

P/EN-US/owc10.exe"

Set objOWC = CreateObject("OWC10.Chartspace")

if(objOWC is nothing) then if msgbox ("O.W.C. v10 is a required
component.",3,"Critical component missing!") = 6 then

window.navigate(downloadPath)
end if
End Sub


But this sniffer is in VB.
What I want is the same but in a C# windows application.

Please can someone help me?
 
A

Alvin Bruney - ASP.NET MVP

should be the same flow
OWC10.Chartspace o = new OWC10.Chartspace();
if(o == null)
error msg
else
all is well

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top