Copy link to clipboard
Copied
I 've created a script using VisualBasic to open the illustrator cs3. Its working fine with most of the systems.
But in few machines, the script got struck with an "Error 430 (Class doesn't support Automation)". If i
re-install the illustrator and then try, its working fine. Can anyone suggest me a solution for this issue with out
re-install the illustrator again.
Thanks in Advance
Copy link to clipboard
Copied
Good afternoon,
Your problem is produce around the opening of Illustrator. Sometimes Illustrator can be open a certain number of times but it is not visible. Check this aspect via the "task Manager (processus)" how many times you see "illustrator" in the list. Verify that all Illustrator process are unload before using your script.
This address could help you.
http://msdn.microsoft.com/en-us/library/aa264512(VS.60).aspx
Patrice
Copy link to clipboard
Copied
if that's the problem is pretty easy to fix:
add this on Form1_Load sub:
Dim procs() As Process = Process.GetProcessesByName("Illustrator.exe")
If procs.Length > 1 Then
For i as Integer = 1 To procs.Length - 2
procs(i).Kill()
Next
End If
.NET framework 2 is required for the above(or 1.1 can't remember for sure)
hope it helps together with patrice's response.
cheers;
Copy link to clipboard
Copied
Thanks for your response. As per your advise, i checked the taskmanager there is no "illustrator.exe". But if i open the illustrator manually its opened without any problem. After reinstall i can able to open the illustrator via VisualBasic. I think some dll not registered properly. But i dont know which dll. If possible kindly advise me.
Thanks for looking into this.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now