Forum Discussion

panka152's avatar
panka152
Contributor
14 years ago

can not access ole properties of mspaint application

Hi,

I am trying to access ole properties of mspaint application but it always throw an error 'invalid class string:cannot obtain class ID'.

At properties page I have clicked 'param' button available against oleobject and  inserted text 'mspaint.application' and press OK button.

please guide me in above steps if I am missing anything.
  • Hi Pankaj,



    AFAIK, Paint doesn't have a COM/OLE interface, so there's no "MSPaint.Application".

    Microsoft Office applications — Word, Excel, Access etc. — do have COM/OLE automation interfaces, but standard Windows apps, such as Paint, Notepad or Calc, don't have them.