Skip to main content
RajGaikwad
Participant
March 31, 2011
Question

InDesign CS4 type library Com reference is missing in visual studio 2008 in windows 7

  • March 31, 2011
  • 1 reply
  • 1379 views

hi

i am trying to create InDesign CS4 COM object using vb.net as

indApp=CeateObject("InDesign.Application.CS4")

i checked in the visual studio 2008 ,and tried to add indesign reference but the reference is not available in the VS references Com section

i tried it by adding the Indesign CS4 DLL by from local drive but still it is not working

i have two systems one having OS windows XP and another is having Windows 7

the problem is in the system having windows XP my program is running fine but same program is giving an exception in the windows 7

i m getting the exception message as:

Unable to cast COM object of type 'System.__ComObject' to interface type 'InDesign.Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{ABD4CBB2-0CFE-11D1-801D-0060B03C02E4}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

please help me

This topic has been closed for replies.

1 reply

Inspiring
July 13, 2011

Hi,

Did anyone solve this issue?

A few years ago, I've wrote a small app that uses Indesign on XP. All these years it worked great. Now, we have migrated to windows 7 and the problems start. I've tried running both Indesign as my own app as administrator without any improvement.

Why are these problems happening in Windows 7?

Kind regards

John

Inspiring
July 13, 2011

Hi,

I've tried turning on "Running in windows xp compatible mode" and then all things worked perfect again, like before.

Still, I would like to know why it's not running in Windows 7 native mode. Does anyone know?

John

Inspiring
July 14, 2011

Hi,

Apparently I was spoken to to soon... Short running tasks run perfectly... Larger running tasks while result in freezing up the custom application and Indesign as well. Strange. Could there be a buffer limit on application running in XP compatible mode? Does anyone have experience in using indesign from Visual Studio on Windows 7. Any help would be greath.

John