| | |
Problem when opening Photoshop in C#
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
Hi, everyone!
I am using Interop.Photoshop.Dll from my C# Windows Forms application. I am using a com object that Adobe Photoshop CS4 provides to use Photoshop in my C# program.
I'm using the ApplicationClass class to launch Photoshop. I have Photosoft CS3 and CS4 on my machine. When I do this:
It launches Photoshop CS3 and does not launch CS4. Is there someone who knows the cause of this?
P.S: I checked my registry at // HKEY_CLASSES_ROOT\Photoshop.AdobePlugin\shell\open\command and it points to the Photoshop CS4 executable.
I am using Interop.Photoshop.Dll from my C# Windows Forms application. I am using a com object that Adobe Photoshop CS4 provides to use Photoshop in my C# program.
I'm using the ApplicationClass class to launch Photoshop. I have Photosoft CS3 and CS4 on my machine. When I do this:
C# Syntax (Toggle Plain Text)
Photoshop.ApplicationClass app = new Photoshop.ApplicationClass()
It launches Photoshop CS3 and does not launch CS4. Is there someone who knows the cause of this?
P.S: I checked my registry at // HKEY_CLASSES_ROOT\Photoshop.AdobePlugin\shell\open\command and it points to the Photoshop CS4 executable.
Why don't you call
Process.Start() instead of using their interop for opening it? If all you're doing is executing it then just start the process. Zip all of the assemblies Photoshop ships (the interop and related assemblies) so I can take a look at them. This might be a %PATH% issues for installed versions
Last edited by sknake; Sep 24th, 2009 at 8:21 am.
Unfortunately, I cannot send you the assemblies because of the security policies of where I work.
I tried to add the directory path of the Photoshop CS4 executable to the %PATH% variable (because it wasn't here), but it didn't work.
Maybe I will try to uninstall CS3 and see if the ApplicationClass constructor launches CS4, but it is not an acceptable workaround for the user of my program. Any other ideas?
I tried to add the directory path of the Photoshop CS4 executable to the %PATH% variable (because it wasn't here), but it didn't work.
Maybe I will try to uninstall CS3 and see if the ApplicationClass constructor launches CS4, but it is not an acceptable workaround for the user of my program. Any other ideas?
I was going to decompile the assembly and look how it was determining which application to launch, and how you could change it. I guess you could do that yourself.
Reflector:
http://www.red-gate.com/products/reflector/
Reflector:
http://www.red-gate.com/products/reflector/
![]() |
Similar Threads
- Changes hosting but problem in opening file (PHP)
- Problem After Opening File from Website (ASP.NET)
- Photoshop file saving problem (Graphics and Multimedia)
- Photoshop file saving problem (Windows Software)
- problem in opening a file with application using java (Java)
- problem with opening form (Visual Basic 4 / 5 / 6)
- problem with opening 2 or more files in c++ (C++)
- problem opening CSV file (C++)
- Drop Down Menu - Problem Opening in IE (JavaScript / DHTML / AJAX)
Other Threads in the C# Forum
- Previous Thread: format decimal value to time
- Next Thread: Instant Messenger
| Thread Tools | Search this Thread |
.h .net 3.5 access adobe advice algorithm analyst app array asp.net broadcast c# camera client combobox commerce connect contorl control creativesuite4 cs4 data database datagrid datastructure datetime dba dbconnection degrees delay-loading design developer development directrobot disabled dll drawing ecommerce error file form formatting forms http httpwebrequest index javascript keypress label lib linux list listbox listview login marshalbyrefobject math mdd messagebox mono msword mysql operator packaging password path photoshop php platform post programmer programming read remote remoting resource richtextbox site smoobjects sql sql-server stream tables textbox totaldays uploadatextfile user usercontrol visual visualbasic visualstudio webdevelopemnt webdevelopment whileloop windows winforms working wpf xhtml







