一.用windows里面自带的com,然后用php生成word文档 <?php $word= new COM("word.application") or die("Unable to create Word document"); print "Loaded Word, version {$word->Version}\n"; $word->Visible = 0; $word->Documents->Add();
参考:http://blog.163.com/zhouchunping_99/blog/static/7837998820085114394716/ 生成word文档 生成word文档 view plaincopy to clipboardprint? public class BiultReportForm { /// <SUMMARY></SUMMARY> /// word 应用对象 /// private Microsoft.Office.Interop.Word.Appli