MVC如何在html页面显示word文档
1、页面 <挢旗扦渌;div class="cont"> <span class="label">操作手册</span> <a href="/home/path" class="btn">下载</a> </div>

3、 string virtualURL = ConfigurationManager.AppSettings["ManualPath"].ToString(); string physicalPath = Server.MapPath(Server.UrlDecode(virtualURL)); if (string.IsNullOrEmpty(virtualURL) || !System.IO.File.Exists(physicalPath)) {

5、 case ".doc": case ".docx": htmlUrl = PreviewWord(physicalPath, virtualURL); break; }

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。