点击事件打开文件 [英] File open on click event

查看:69
本文介绍了点击事件打开文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我使用process.start打开Word文件,它可以正常工作但它无法打开jpg文件,对此您能帮我清除吗

Hi i used process.start to open word file,it works  but it not opens jpg file ,will you clear me regarding this

推荐答案

您确定路径正确吗?我只是试过了,效果很好.

Are you sure the path is correct? i just tried this, and it worked fine.

            Process p = new Process();
            p.StartInfo.FileName = @"C:\Users\username\Desktop\1.jpg";
            p.Start();   


这篇关于点击事件打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆