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:
Expand|Select|Wrap|Line Numbers
- 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.
Expand|Select|Wrap|Line Numbers
- 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