Aug-26-2021, 01:40 PM
I'm trying to use pywin32 to access Adobe Illustrator through COM. I'm able to access other apps like Photoshop and Excel fine, but no matter how I try to access Illustrator, it always throws the exception: (-2147221005, 'Invalid class string', None, None).
The code:
import win32com.client as win32com
illApp = win32com.Dispatch("Illustrator.Application")
I can use the same code with other COM apps and it works fine. Does anyone have any suggestions?
Thank you!
*PS This is my first post in this forum. I'm a long-time programmer (C/C++, .Net, etc) and recently started using Python for some projects at work. So far, I'm really liking it!
The code:
import win32com.client as win32com
illApp = win32com.Dispatch("Illustrator.Application")
I can use the same code with other COM apps and it works fine. Does anyone have any suggestions?
Thank you!
*PS This is my first post in this forum. I'm a long-time programmer (C/C++, .Net, etc) and recently started using Python for some projects at work. So far, I'm really liking it!