Copy link to clipboard
Copied
I have been running Illustrator CS2 from an Access related VBA program for some years. I loaded Creative suite CS4 some weeks back and uninstalled Illo CS2. The lines that invoked Illo CS2 were -
Dim docRef As Illustrator.Document
Set appRef = CreateObject("Illustrator.Application.2")
I tried changing the last line to -
Set appRef = CreateObject("Illustrator.Application.4")
and also tried using
Set appRef = CreateObject("Illustrator.Application")
With each of these "Set" lines I also deleted the Reference under "Tools" to the "Adobe Illustrator CS2 Type Library" and checked the CS4 version - making it the last of the checked libraries just like the CS2 one was. However running either of the "Set" lines imediately throws an error - and Illo does not run. Without the ".4" I get an error number of 0. Don't remember what the Setwith ".4" does. Illo has been activated and runs fine from Windows (XP SP3 BTW).
Any suggestions to resolve this, please?
BTW - with Illo CS2 I got a fairly reasonable scripting manual, but all I got with CS4 was the "Introduction to Scripting" which has very little info in it. Is there a real scripting (VBA) manual I can get from sonmewhere?
Peter
Copy link to clipboard
Copied
I have NO idea about you VB problem but you can find the documentation that you want here…
http://www.adobe.com/devnet/illustrator/scripting/index.html
Copy link to clipboard
Copied
Thanks Muppet, it's good to have the manual update.
However, the manual did not solve my imediate problem, so this question is still open ........???
Peter
Copy link to clipboard
Copied
try from scratch with a different application, use Excel for example, set the Reference to the CS4 library and try some simple code to see if it works.
Copy link to clipboard
Copied
Carlos,
CreateObject with Excel worked fine - no problem. And this was by inserting the Excel set line just before the line for Illustrator in the real application. Remember I have been running this app for years - and the CS2 -> CS4 change (as defined earlier) is the only change
Peter
PS I also tried with Illo open - same response as with it shut down - and this is with no illo process running per task manager.
PPS I also checked the associations and rebooted. No improvement.
PPPS Uninstalling and Reinstalling Illo CS4 FIXED the PROBLEM
(How come I am not allowed to idenfy this as a "Correct Answer"!! - Folk should be encouraged to post answers whether they had the original problem or not.)
Message was edited by: Peter JD Matthews