i have a photoshop file (*.psd) which i want to open using C#? it will automatically open the file in Photoshop application. or even in other file/application.. what code should I write?
Printable View
i have a photoshop file (*.psd) which i want to open using C#? it will automatically open the file in Photoshop application. or even in other file/application.. what code should I write?
You can call Process.Start and pass a file path to mimic double-clicking that file in Windows Explorer.
Photoshop does take command line argument input, so you could start the photoshop binary, and pipeline the .pdf file as an argument to that executable...; With, the Process method jmcilhinney suggested even. This ensures that it opens in Photoshop if this is what you want, instead of it opening in a default "other" program. Depending on what is set.