473,396 Members | 1,929 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,396 software developers and data experts.

VB6 Active-X component can't create object

132 100+
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:
Expand|Select|Wrap|Line Numbers
  1. Set PS = CreateObject("Photoshop.Application")
  2.  
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.
Expand|Select|Wrap|Line Numbers
  1. Dim jpeg As New Photoshop.JPEGSaveOptions
  2. jpeg.EmbedColorProfile = True
  3. jpeg.FormatOptions = psStandardBaseline
  4. jpeg.Matte = psNoMatte
  5. jpeg.Quality = 10
  6.  
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
Aug 8 '10 #1
0 1454

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

Similar topics

5
by: lkrubner | last post by:
I have a webserver through Rackspace. I create a domain. I create an FTP user. I upload some files. I create a database called testOfSetupScript and then I create a database user named setup. I...
0
by: Andy | last post by:
When I'm starting a project , i have to create some directories on Windows 2000 server. I have to apply security for particular users or groups. (Users and Groups are include in Active Directory) ...
5
by: Roger Bonine | last post by:
I'm working on a rewrite of our employee database. I plan to implement a fairly heavyweight base class, which includes 20 or 30 fields, including address and phone number collections and the like....
2
by: Technical Group | last post by:
Friends, Can anybody help me out by sending a piece of C# code showing how to add an active directory user to a particular user group? If the group does not exist, then create it. Thanks in...
8
by: Jack Addington | last post by:
I have some 'service' classes that I instantiate when its service boolean is enabled. When its disabled I want to destroy it. I'm not clear on if I need to do this and if so how. Basically I...
0
by: Kumar | last post by:
Hi Folks, I am trying to do the following functionality. Add employee ID in OtherHomePhone field in that user Active directory profile. I created DirectoryEntry object. While assiging the...
1
by: tangus via DotNetMonster.com | last post by:
Hello all, I'm really struggling with getting some Active Directory code to work in ASP.NET. Can you please provide assistance? I am executing the following code: Dim enTry As DirectoryEntry =...
16
by: Roman Ziak | last post by:
Hello, there were times when I used to be looking for a way to access JavaScript Global object similar to those found in VBScript or PHP ($GLOBALS). At present this has only academic value for...
18
by: Frank M. Walter | last post by:
Hello, I have made an small AddIn with udf for excel 2003. I use vs2003. The point of view is the function __T() I call it in excel sheet writing =__T() I am not able to set a value to a...
1
by: Carlettus | last post by:
Dear All, sorry but I'm not sure if this is the right place to post my problem. I was using the following asp code to create users in Active Directory. Suddenly, and I don't know the reason, users...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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,...

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.