如何在ASP窗口应用程序中打开phtooshop和lightroom中的图像 [英] How to open image in phtooshop and lightroom in ASP windows application
问题描述
我必须在photoshop,lightroom中打开图像和catlog。请帮助我。
提前致谢
我尝试过:
使用System.Windows.Forms;
使用System.Diagnostics
public partial class Form1:Form
{
public Form1()
{
InitializeComponent();
} $ / $
private void button1_Click(object sender,EventArgs e)
{
Process.Start(mspaint ,@C:\Desert.jpg);
}
}
I have to open images and catlog in photoshop ,lightroom resp. Kindly help me.
Thanks in advance
What I have tried:
using System.Windows.Forms;
using System.Diagnostics
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Process.Start("mspaint", @"""C:\Desert.jpg""");
}
}
推荐答案
假设用户安装了它们配置为.JPG文件的默认应用程序(很可能,或者他更喜欢使用不同的应用程序),然后省略exe文件:
Assuming the user has them installed and configured as the "default app" for .JPG files (which is likely, or he prefers to use a different app) then just omit the exe file:
Process.Start(@"C:\Desert.jpg");
Will执行此操作。
Will do it.
您的代码在服务器上运行,因此在无法访问桌面的帐户下的服务器上启动任务。您无法从asp代码启动客户端上的应用程序。
Your code runs on the server so the task is being started on the server under an account that doesn't have access to the desktop. You can't launch apps on the client from asp code.
这篇关于如何在ASP窗口应用程序中打开phtooshop和lightroom中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!