去弄一个wvText吧!?你用什么操作系统?

解决方案 »

  1.   

    to andyda:
    我自己测试过txt文件,都可以。唯独word文档不可以
    我用的是windows 2000 professional.
      

  2.   

    你需要浏览器支持内嵌word
    不然的话打开的时候就会变成文件下载然后使用php输出标题头
    header("content-type:application/vnd.ms-word");header("content-disposition:filename=test.doc");下面将所有文档的内容print出来以上可能可以实现,没有测试
    详细参考http://www.csdn.net/develop/library/other/PHP/3970.shtm
      

  3.   

    怎么个打开法:
    PHP控制打开还是在IE中打开
      

  4.   

    to yorgo(羽高)
    说的有道理,的确总是出现文件下载界面,而且经常死机但是,怎么让自己的浏览器支持内前word呢?
    另外,运行你说的文件http://www.csdn.net/develop/library/other/PHP/3970.shtm ,怎么出现这样的错误呢?
    Warning: Cannot add header information - headers already sent by (output started at c:\php\sybase\test3.php:2) in c:\php\sybase\test3.php on line 4Warning: Cannot add header information - headers already sent by (output started at c:\php\sybase\test3.php:2) in c:\php\sybase\test3.php on line 6
    test1 test2 test1 test2 test1 test2 test1 test2 test1 test2 test1 test2 非常感谢
      

  5.   

    to leejd(小东)
    是在IE中打开
      

  6.   

    to yorgo(羽高)
    这种错误怎么突然又没有了呢?在PHP环境中可以实现。但是在IE中则只有test1 test2 test1 test2 test1 test2 test1 test2 test1 test2 test1 test2 呢?
      

  7.   

    前面的错误是指你在header()前面输出了字符,在header之前是不可以输出任何字符的
    你的ie可能不支持内嵌word,这个功能要安装office才会有
      

  8.   

    ie打开word文档需要activeX控件,试试frontpage,可以的
      

  9.   

    算了,这问题就算解决了。真不容易。给分。
    yorgo(羽高)的解答给了我思路,终于我解决出来了。15分
    其余参与者都有一点,不要嫌少啊。我分也不多了。