> Hi, I used ShellExecute API to open some Excel and Access files. However it
> gives "can't start because there is no license for it on this machine"
> message in some computers. We are using Office 2003.
> I cheked the HKEY CLASSES ROOT registry permissions and no problem with it.

Signature
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team
iCode Systems
Yes, you can open excel/access files by double clicking on windows explorer
or from excel and access open menu. However when you try to open with
Shellexecute API in VB6 it gives the message "can't start because there is no
license for it on this machine" (for a few PC only. No problem with 95 % of
users). Probaply if I reinstall the office, the problem will be solved but
i'm trying to find a simple way and learn the reason.
Thanks
> > Hi, I used ShellExecute API to open some Excel and Access files. However it
> > gives "can't start because there is no license for it on this machine"
[quoted text clipped - 4 lines]
> double clicking a file?
> Is that the full message? What is the title of it?
Dean Earley - 23 Jun 2008 12:33 GMT
>>> Hi, I used ShellExecute API to open some Excel and Access files. However it
>>> gives "can't start because there is no license for it on this machine"
[quoted text clipped - 11 lines]
> users). Probaply if I reinstall the office, the problem will be solved but
> i'm trying to find a simple way and learn the reason.
What verb are you passing to ShellExecute?
If you pass a null string, it should be functionally identical to double
clicking the file.

Signature
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team
iCode Systems
KT1972 - 24 Jun 2008 12:35 GMT
Thanks, I used "null string" and it is working now.
> >>> Hi, I used ShellExecute API to open some Excel and Access files. However it
> >>> gives "can't start because there is no license for it on this machine"
[quoted text clipped - 15 lines]
> If you pass a null string, it should be functionally identical to double
> clicking the file.