$ppt = new COM("wpp.application") or die("unable to instantiate ppt");
try{
$pptopen = $ppt->Presentations->Open("$file");
}catch(Exception $e){
echo "失败信息:".$e->getMessage();
echo "ppt打开错误<br />";
$pptopen->Close();
$ppt->Quit();
unset($pptopen,$ppt);
}
如图所示,当转换的时候,如果打开错误,就会弹出这种对话框,需要点确定之后才会执行下面的操作。。
如何屏蔽掉这种弹出框,继续执行程序。