如何使用C#在浏览器中打开PDF,DOC和XLS [英] how to Open PDF,DOC and XLS in browser using C#
本文介绍了如何使用C#在浏览器中打开PDF,DOC和XLS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
all
i想在浏览器中打开PDF,DOC和XLS。
可以帮助我
提前感谢。
解决方案
http://social.msdn.microsoft.com/Forums/en/winforms/thread/d4920f03-4f97-48a9-a973-f333333724f9 [ ^ ]应该可以帮到你。
检查这些
如何使用ASP.NET和Visual C#.NET将二进制文件写入浏览器 [ ^ ]
在数据Web控件(C#)中显示二进制数据 [ ^ ]
编辑
使用此行查看文档。
Response.AddHeader( content-disposition, inline; filename = filename.pdf);
hai
all
i want to Open PDF,DOC and XLS in browser.
can any help me
thanks in advance.
解决方案
http://social.msdn.microsoft.com/Forums/en/winforms/thread/d4920f03-4f97-48a9-a973-f333333724f9[^] should help you out.
Check these
How To Write Binary Files to the Browser Using ASP.NET and Visual C# .NET[^]
Displaying Binary Data in the Data Web Controls (C#)[^]
EDIT
Use this line to view the document.
Response.AddHeader("content-disposition", "inline;filename=filename.pdf");
这篇关于如何使用C#在浏览器中打开PDF,DOC和XLS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文