Skip to main content
May 14, 2010
Question

VB6 CS4 WIN7 problem

  • May 14, 2010
  • 1 reply
  • 446 views

Hi there,

right now I am getting trouble to run my scripts under win7.

Every time I try to access InDesign object I get "type mismatch" error.

Look at the code:

Dim mInDesign as InDesign.Application

Set mInDesign=GetObject("","InDesign.Application.CS4")

---- InDesign starts hier so the access work but after InDesign is runing I get the error...

---- CreateObject cause the same....

The same code works fine if I change the definition of mInDesign to:

Dim mInDesign as Object.

The same things happens with ALL InDesign object like Page, Spread, TextFrame, a.s.o.

I use Creative Suite CS4 english, Windows 7 Enterprise Testversion, VS 6.0.

Is there any solution for this problem? - my application is realy huge so I don't want to change the whole code...

regards

This topic has been closed for replies.

1 reply

Participant
May 18, 2010

Hi

Try Dim mInDesign as Object or better

It appears that this problem can be avoided if immediately after installing InDesign (before before running InDesign) you set the InDesign shortcut compatibility options to "run as administrator". Then run InDesign once.

Regards