如何在Windows Apllication中打开任何文件(excel,word,pdf) [英] How to Open any file(excel,word,pdf) in Windows Apllication

查看:107
本文介绍了如何在Windows Apllication中打开任何文件(excel,word,pdf)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我一直在使用Web应用程序,知道如何在Web应用程序中打开任何类型的文件。



如果在Windows APplication中有类似于Response.Write的方法,请告诉我。



谢谢。



Prathap。

Hi All,

I had always worked with Web applications and know how to open any kind of file in web app.

Can you please let me know if there is any method similar to Response.Write in Windows APplication too.

Thanks.

Prathap.

推荐答案

如果你在谈论将文件装入你的应用程序我建议查看COM对象,例如Microsoft word。如果您只是打开微软word中的文档,请尝试查看System.Diagnostics中的Process类;



处理 .Start(documentpath);
If you''re talking about loading documents into your application I would suggest looking into COM Objects e.g Microsoft word. If you were open to just opening the document from microsoft word try looking into the Process class in System.Diagnostics;

Process.Start(documentpath);


这篇关于如何在Windows Apllication中打开任何文件(excel,word,pdf)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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