信呼OA版本v2.3.8
This commit is contained in:
17
include/chajian/officeChajian.php
Normal file
17
include/chajian/officeChajian.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* win下将word转html
|
||||
*/
|
||||
class officeChajian extends Chajian{
|
||||
|
||||
|
||||
public function tohtml($path)
|
||||
{
|
||||
if(!class_exists('COM'))return '没有开启COM组件';
|
||||
$word = new COM('Word.Application');
|
||||
$word->Visible = true; //可看见
|
||||
$word->Documents->Open($path);
|
||||
|
||||
$word->Documents[1]->SaveAs('upload/abc.html',8);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user