conditionally write it out to the screen using the response.write object
response.write<"clsid" etc
--
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
-------------------------------------------------------
Hi Alvin,
I found your code. I don't need to download because I use the intranet and
I
just use the lines that indicate the client office version
<script language="vbscript">
Sub CheckForOWC()
Dim objOWC
on error resume next
Set objOWC = CreateObject("OWC10.Chartspace")
if(objOWC.MajorVersion < 10) then
'here I have to set the object classid to
CLSID:0002E500-0000-0000-C000-000000000046 (for office 2000)
else
'here I have to set the object classid to
CLSID:0002E55D-0000-0000-C000-000000000046 (for office xp,2003)
end if
End Sub
</script>
after that script I have this html:
<body >
<div>
<table align="right" border="1" width="100%" >
<objec! classid="CLSID:0002E500-0000-0000-C000-000000000046"
id="ChartSpace1" style="HEIGHT: 410; WIDTH: 100%" VIEWASTEXT></object>
</table>
</div>
</body >
I don't know how to tie the CheckForOWC() procedure result to the object
that declared in html section.In other words, How can I change the object
classid that is declared in the html section with the result of
CheckForOWC()
that declared in the script section ?
Thanks for your help,
David
:
You need to write a sniffer routine, there is code in this newsgroup
that i
have provided early this year or last year - if you search the archives
that
will sniff out the client version.
--
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
-------------------------------------------------------
Hi,
I need to know the office version of the client to use the right
component.
I use OWC(Office Web Component) and there is differences between the
versions.
In office 2000:classid=CLSID:0002E500-0000-0000-C000-000000000046
In office 2003:classid=CLSID:0002E55D-0000-0000-C000-000000000046
In the source it looks like this (html / asp) :
<OBJEC! id=ChartSpace1 style="WIDTH: 100%; HEIGHT: 350px"
classid=CLSID:0002E500-0000-0000-C000-000000000046>
Thanks
David