Hi all,
For my work I need to create a jpeg-file with Photoshop. In order to maintain the same Name-format I decided to create an application in VB6. That way I'm sure that the names always stay the same.
Now when I compile it, it's working fine on my pc but when I copy it on the pc where the software has to run I'm getting the error: "ActiveX component can't create object"
In my application I'm only creating one object:
Next I'm opening up a psd file and that's working fine.
However when I try to create the jpeg standard of which I want to save my graphic to, that's where it going wrong.
I was reading on the subject on the net and it seems it's because my reference is not on the targetmachine.
However, when I execute the program, it opens Photoshop and it opens up the PSD-file. It's only when I'm trying to create the Jpeg-standard that it fails.
Anybody has an idea how I can solve that?
Thanks
edit: I'm using the references Adobe Photoshop CS4 Object Library and Type Library
For my work I need to create a jpeg-file with Photoshop. In order to maintain the same Name-format I decided to create an application in VB6. That way I'm sure that the names always stay the same.
Now when I compile it, it's working fine on my pc but when I copy it on the pc where the software has to run I'm getting the error: "ActiveX component can't create object"
In my application I'm only creating one object:
Code:
Set PS = CreateObject("Photoshop.Application")
However when I try to create the jpeg standard of which I want to save my graphic to, that's where it going wrong.
Code:
Dim jpeg As New Photoshop.JPEGSaveOptions jpeg.EmbedColorProfile = True jpeg.FormatOptions = psStandardBaseline jpeg.Matte = psNoMatte jpeg.Quality = 10
However, when I execute the program, it opens Photoshop and it opens up the PSD-file. It's only when I'm trying to create the Jpeg-standard that it fails.
Anybody has an idea how I can solve that?
Thanks
edit: I'm using the references Adobe Photoshop CS4 Object Library and Type Library