Re: How can I get the Office version



Thanks Damir, but I don't know how to implement your solution in my project
because I don't work with delphi at all.
Thanks anyway.

David

"Damir" wrote:

> No, it is Delphi, but idea is to read if registration key exists in registry
> folder for office version 10.0 (XP) or 11.0 (2003).
>
> I'm not familiar with ASP, but I expect that this can be done with ASP.
>
> "DavidE" <DavidE@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:C67782A4-353C-40E4-B111-C6C07573B3EA@xxxxxxxxxxxxxxxx
> > Hi Damir,
> >
> > Is it java script functions ?
> > How can I call this functions form an html/asp page ?
> > How can I get and use the results from those functions ?
> >
> > Thanks
> >
> > David
> >
> >
> >
> > "Damir" wrote:
> >
> > > try this
> > >
> > > function IS_OXP_Installed: Boolean;
> > > var
> > > Reg: TRegistry;
> > > begin
> > > Reg := TRegistry.Create;
> > > try
> > > Reg.RootKey := HKEY_LOCAL_MACHINE;
> > > Result :=
> > > Reg.KeyExists('SOFTWARE\MICROSOFT\Office\10.0\Registration');
> > > finally
> > > Reg.CloseKey;
> > > Reg.Free;
> > > end;
> > > end;
> > >
> > > function IS_O2003_Installed: Boolean;
> > > var
> > > Reg: TRegistry;
> > > begin
> > > Reg := TRegistry.Create;
> > > try
> > > Reg.RootKey := HKEY_LOCAL_MACHINE;
> > > Result :=
> > > Reg.KeyExists('SOFTWARE\MICROSOFT\Office\11.0\Registration');
> > > finally
> > > Reg.CloseKey;
> > > Reg.Free;
> > > end;
> > > end;
> > >
> > > "DavidE" <DavidE@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > > news:3F985090-D9DE-4E53-91E2-C782D3A327E4@xxxxxxxxxxxxxxxx
> > > > 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:
> > > > <OBJEC! id=ChartSpace1 style="WIDTH: 100%; HEIGHT: 350px"
> > > > classid=CLSID:0002E500-0000-0000-C000-000000000046>
> > > >
> > > > Thanks
> > > > David
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
>
>
>
.