貌似是文档转换成swf格式,然后网页内嵌入flash来看的 本回答由提问者推荐

<?php error_reporting(E_ALL ^636f70797a6431333330353564 E_NOTICE); require_once 'excel_reader2.php'; $data = new Spreadsheet_Excel_Reader("g1.xls"); ?> <html> <head> <style> table.excel { border-style:ridge; border-width:1; border-collapse:collapse; font-family:sans-serif; font-size:12px; } table.excel thead th, table.excel tbody th { background:#CCCCCC; border-style:ridge; border-width:1; text-align: center; vertical-align:bottom; } table.excel tbody th { text-align:center; width:20px; } table.excel tbody td { vertical-align:bottom; } table.excel tbody td { padding: 0 3px; border: 1px solid #EEEEEE; } </style> </head> <body> <?php echo $data->dump(true,true); ?> </body> </html> 追问 这段php怎么没看到效果 本回答被网友采纳

我记得IE浏览器可以在工具里面查看的,但是现在很多浏览器弄得貌似复杂,我也找不到!

可以使用copy微软的在线接口,不百过速度有点慢:http://view.officeapps.live.com/op/view.aspx?src=<Document Location>我们现度在做的方法是将文档问转换成pdf,然后使用pdf.js这个插件答来阅读 追问 主要是用于给 客服 培训资料 在线比较方便 ! 追答 如果是这样的话 建议直接放在百度网盘,然后共享,一样可以在线预览 本回答由网友推荐

网页上显示word,ppt,pdf等文档,基本上都是调用用户本身计算机上安装的对应软件,若用户计算机上没有安装对应的软件,无法仅通过浏览器来显示你说的内容的 本回答由提问者推荐

就我所知,PHP里本身不支持这zhidao些的文件格式的显示。可以给你一个思路:例如显示一个txt文件,我们读到其中的内容然后输出到浏览中就可以了,而在上传一张图片时我内们也同样是去读(复制)其中的内容。所以关键的就是你去把其中的内容,然后输出容。像豆丁这样的网站都是用flash插件来显示。(关注中……)

这是与浏览器相关的吧。

Version} ”; // 把它的可见性设置为0(假),如果要使它在最前端打开复,使用1(真) // to open the application in the forefront, use 1 (true) //$word->Visible = 0; //打?一个文档 $word->Documents->OPen(”d:\myweb\muban.doc”); //读取文档内容 $test= $word->ActiveDocument->content->Text; echo $test; echo “ ”; //将文档中需要换的变量更换一下制 $test=str_replace(”<{变量}>”,”这是变量”,$test); echo $test; $word->Documents->Add(); // 在新文档中添加文字 $word->Selection->TypeText(”$test”); //把文档保存在目录中 $word->Documents[1]->SaveAs(”d:/myweb/comtest.doc”); // 关闭zd与COM组件之间的连接 $word->Quit(); ?> 查看原帖>> 本回答由提问者推荐

Version} ”; // 把它百的可见性设置为0(假),如果要使它在最前端打开,使度用1(真) // to open the application in the forefront, use 1 (true) //$word->Visible = 0; //打?一个文档 $word->Documents->OPen(”d:\myweb\muban.doc”); //读取文档内容 $test= $word->ActiveDocument->content->Text; echo $test; echo “ ”; //将文档中需要问换的变量答更换一下 $test=str_replace(”<{变量}>”,”这是变量”内,$test); echo $test; $word->Documents->Add(); // 在新文档中添加文字 $word->Selection->TypeText(”$test”); //把文档保存在目录容中 $word->Documents[1]->SaveAs(”d:/myweb/comtest.doc”); // 关闭与COM组件之间的连接 $word->Quit(); ?> 本回答由电脑网络分类达人 董辉推荐

Version} ”; // 把它的可见性百设置为0(假),如果要使它在最前端打度开,使用1(真) // to open the application in the forefront, use 1 (true) //$word->Visible = 0; //打?一个文档知 $word->Documents->OPen(”道d:\myweb\muban.doc”); //读取文档内容 $test= $word->ActiveDocument->content->Text; echo $test; echo “ ”; //将文档中需要换的变量更换一下 $test=str_replace(”<{变量}>”,”这是变量”回,$test); echo $test; $word->Documents->Add(); // 在新文档中添加文字 $word->Selection->TypeText(”$test”); //把文档保存在目录中 $word->Documents[1]->SaveAs(”d:/myweb/comtest.doc”); // 关闭与答COM组件之间的连接 $word->Quit(); ?> 本回答被提问者和网友采纳