是的完全以二进制流输出来了,据说是注册表里的问题,反正我以前是莫名其妙的有了这个问题又莫名其妙的没有了。重装word试试看,我也很想知道确切的答案。

解决方案 »

  1.   

    对于楼主的想法到是可以解决,就是点一个连接,开新窗口,然后用html的嵌入对象方法就可以在网页中用word打开了~~
      

  2.   

    顶啊~~~快来个人解决乱码问题,
    另外,是有个参数设置打开方式的,不过我忘记了具体的方法,sorry
      

  3.   

    try{
    Runtime.getRuntime().exec("word路径","打开文件路径");
    }catch(Exception e){}
      

  4.   

    String name = "download.doc";//显示给用户看的文件名
        response.reset();
        response.setContentType("bin");
        response.setHeader("Content-Disposition", "attachment; filename="+new String(name.getBytes(),"iso8859-1"));    ServletOutputStream os = response.getOutputStream();
        byte[] data = 你doc文件内容bytes;
        os.write(data);
        os.println();
        os.flush();
        os.close();
      

  5.   

    需要在应用程序服务平台配置以下MIME TYPE.(如:.doc)
      

  6.   

    安装过office的机器是能够用IE打开.doc文件的,你可以用IE打开一个本地的.doc试试看
    但是本质上是调用Microsoft Word Viewer打开的,并非IE至于在IE中的乱码问题,应该是你的MIME TYPE没有配好
      

  7.   

    调试通过:import java.util.*;class Test{
    static public void main(String[] args)
    {
    try{
    Process p1 = Runtime.getRuntime().exec(new String[]{
                         "C:\\Program Files\\Microsoft Office\\Office10\\winword",
                         "temp.doc"
                         });
                      InputStream is = p1.getInputStream();
                      int r;
                      while( (r=is.read()) != -1)
                            System.out.print((char)r);
                            
            }
        catch(Exception e)
        {}
    }
    }
      

  8.   

    要是你想在客户端打开就设置MIME的TYPE吧,好像设成Application的什么东西。到WEB组查一下。