在ie上直接显示word文档
sunnf 2003-08-11 08:13:18 我想在网页直接显示word文档,不调用客户端的word下面的不是vb.net代码,vb代码如何实现
说FileStream类没定义,我有imports system.io
FileStream fs = new FileStream("c:\\1.doc", FileMode.Open, FileAccess.Read);
byte[] bytes = new byte[(int)fs.Length];
fs.Read(bytes, 0, bytes.Length);
fs.Close();
Response.ContentType = "application/msword";
Response.OutputStream(bytes);
Response.End();