473,425 Members | 1,824 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,425 software developers and data experts.

Damaged Illustrator Ref Library?

I've been trying to code a fairly uncomplicated program that will read some values from an Excel worksheet into Illustrator variables.

I tried VBA first, being careful to add the Illustrator Reference Library. I could swear that my first attempt (the usual "Hello World" thing from the Illustrator VB Reference Guide) was successful, but maybe I'm delusional. Anyway, I wish now I'd saved that code, because every attempt afterward generated a 403 error message on encountering the first "Set =" statement.

It didn't matter whether I was trying to create a new document, open an old one, or modify one that was already open; as soon as I tried to refer to the document in any way...

Runtime Error 403:
Class does not support Automation or does not support expected interface



I retyped the code eight ways from Sunday, and even tried it in VBExpress. Same result-- though I did get a fuller explanation, if one I'm powerless to decipher:

System.InvalidCastException: Unable to cast COM object of type 'Illustrator.ApplicationClass' to interface type 'Illustrator._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{95CD20AA-AD72-11D3-B086-0010A4F5C335}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

The odd thing is that a VBScript version of the same code works fine. Unfortunately, I can't use VBScript for this project, as it lacks certain functions that I need to format my Excel data.

Any idea what the problem could be? Is it possible my Interop.Illustrator.dll file got damaged somehow? The Adobe Illustrator scripting forum turns up no one else who's run into this problem, though you'd think by now someone would have if it was a universal issue. (They can't ALL be using JavaScript!)

Any and all suggestions would be greatly appreciated. Thanks.
Oct 30 '06 #1
1 3071
UPDATE: It was, indeed, a damaged .dll file. Re-installing Illustrator solved the problem.

As Emily Litella used to say: "Never mind." :-)
Oct 30 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: adder | last post by:
I would like to create a script that can export ai-files to jpg-files using the export function available in Adobe Illustrator. Can someone tell me how to dispatch the illustrator com-object to...
0
by: mgrahm | last post by:
Hi all I would like to create an image map for a website I am working on. A number of years ago I think I think I used a program called Frog-It. I have since upgraded to a new computer a few...
1
by: Dagoberto | last post by:
can somebody tell me how can I get old data from a recently damaged table?
6
by: prodsd | last post by:
Here is my challenge . I have a new syatem That when I save a Adobe Illustrator file to my desktop it is ok but when I try to move or delete the file I get a error key that is open ??? I never had...
3
by: olle | last post by:
How to deal with a VBA-project that is damaged? Hi everyone. I am BigOlle from sweden and I have been working with Accees for ten years I am now working on a project that started in Access97...
4
by: tussom | last post by:
Hello is anyone familiar with using javascript with adobe illustrator i can't seem to find a way to place an image file into an Adobe illustrator file from within the javascript code i would...
2
by: 770ariel | last post by:
i'd be thankfull if someone can help me with this: i get this message when i try to run adobe illustrator CS2 microsoft visual c++ runtime library runtime error! program: ...rator...
0
by: ch612bunn | last post by:
adobe illustrator cs3 crack
0
by: Natis | last post by:
Hello :) I purchased these this icon sets with the intention to modify them, since they had the vector sources. The thing is that the sources are Flash files which I'm not very related to. I tried...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.