| | |
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 |
.net 3.5 access ado.net adobe app array asp.net association associations avltree bot broadcast buttons c# camera casting chat code combobox connect console control convert cs4 custom database datagrid datetime dba delay-loading design development dialog dll drawing dubai e-commerce expression file forloop form formatting forms game gdi+ httpwebrequest index inline javascript lib list listbox listview marshalbyrefobject mdd messagebox mysql networking object open packaging password path photoshop post programming read remote remoting resource richtextbox saving server silverlight site softwaredevelopment sql sql-server statistics storing stream tables tcpclientchannel textbox totaldays treeview uploadatextfile user vistaflaw visual visualstudio webdevelopemnt webdevelopment whileloop windows winforms wpf xhtml xml







