如何在IIS中打开文件(.doc,.xls,.txt,....) [英] How to open file(.doc, .xls,.txt,....) in IIS

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

问题描述

我正在使用System.Diagnostics.Process.Start()方法打开文件,它在开发中工作正常,在IIS中托管应用程序后,它无法正常工作。如何解决这个问题?





先谢谢你......

I am using System.Diagnostics.Process.Start() method for open a file, it's working fine in development, after hosted application in IIS, it's not working. How to solve this issue ?


Thanks in Advance......

推荐答案


u不能打开任何exe表单iis,你需要下载.doc,.xls文件然后手动打开。在大多数网站你看,如果你打开任何软件,首先它在你的系统下载然后你手动打开exe并运行它,就像你不能打开任何exe表单iis,bcz权限(权限)问题,没有人给你权利打开安装在服务器机器上的ms office。如果你想查看,那么你试试查看器,下载doc并使用doc viewer打开,如水晶报表查看器......
Hi u cant open any exe form iis,u need to download .doc,.xls file then open manually.In most of the web site u see,if u open any software,first it download in ur system and then u manually open exe and run it,like that u cant open any exe form iis,bcz rights (permission) problem,no one give u rights to open ms office installed in server machine.if u want to view ,then u try viewer ,download doc and open with doc viewer,like crystal report viewer...


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

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