Microsoft Word 문서를 보내려고합니다. 하지만 보내기 전에 PHP를 사용하여 보내기 전에 (문서 제목, 제목, 작성자, 팀, 관리자, 회사 등) 속성을 수정하고 싶습니다.Word 문서 속성 수정
COM을 사용할 수 없습니다.이 스크립트가 실행될 서버에 ms 사무실이 없으며 설치할 수 없으므로 pls에서 다른 해결책을 제공합니다.
$word = new COM("word.application") or die ("something went wrong!!");
//open new word document
$word->Documents->Add();
//type text into the document
$word->Selection->TypeText("this is some sample text in the document");
//save document
$word->Documents[1]->SaveAs("newWordDocument.doc");
//close word
$word->Quit();
//free object resources
$word->Release();
$word = null;
누구나 당신에게 제목과 본문을 가르쳐 줬습니까? – mauris
어떤 버전의 Word 문서입니까? 새로운 XML 기반 형식 또는 기존 독점적 인 .doc? –
버전 : word 2007 .doc – shazia