Skip to main content
Participant
February 4, 2020
Question

Opening Photoshop with VB.net

  • February 4, 2020
  • 1 reply
  • 439 views

Hey everyone,

I've had a problem I have been trying to figure out for a long time. I am working with a VB project that helps automate some aspects of photoshop for one of the teams my company has. It lets the user click a button and it will load up photoshop with a picture from a folder we have, and then when they click the button again it saves that photo and opens the next one in the folder. This project worked perfectly when the team was using CS5. However, we are trying to upgrade them to PhotoShop Creative Cloud, and when trying to get this program to work with Photoshop CC it no longer works and I cannot for the life of me figure out how to fix it. The problem I am having is with creating an instance of Photoshop that I can then use more functions with. So to show you, the problem I am getting is at this line:

 

PhotoshopApp = Activator.CreateInstance(Type.GetTypeFromProgID("Photoshop.Application"))

 

This used to work for the older version of Photoshop, but ever since Adobe upgraded to Creative Cloud my program breaks here and gives me this error:

{"Retrieving the COM class factory for component with CLSID {C4C3E2FB-D66C-44E5-96A0-349F951CB3D4} failed due to the following error: 80080005."}

 

This error is not a lot to go on so I have been trying everything I can think of to get it to work. Would you have any idea how to fix this? I would so greatly appreciate your help. Thank you so much!

This topic has been closed for replies.

1 reply

Legend
February 4, 2020

One check: the app trying to connect: is it an interactive app, running in a visible app started by the current user, without admin privileges?

FEENY!!!Author
Participant
February 4, 2020

Yes it runs in a visible app. The program should load up Photoshop with an image, let the user mess around in photoshop, then on the next button click it will save and close it and open up the next image. As of right now, it loads up the Photoshop app, but before it can load an image into it, the line that started up the instance of Photoshop also crashes the program.

The user should have admin privilges, but I'm not 100% sure on that. But this program worked before with the same users on the earlier version of Photoshop, before CC.