다음 함수를 사용하여 docx 문서를 만듭니다.
require ( 'grabzit / lib / GrabzItClient.class.php');
// require ( "grabzit / config.php");
$ grabzIt = 새로운 GrabzItClient ( "... xxx ...");
$ grabzIt->HTMLtoDOCX( "여기에 일부 내용");
헤더 ( 'Content-Type : application / octet-stream');
header ( 'Content-Disposition : attachment; filename = "'. $ GLOBALS {TSFE}-> id. '. docx"');
$ GLOBALS [ 'TSFE']-> content = $ grabzIt->SaveTo();
서류는 saved 그러나 docx가 열리면 Word에 "문서를 열 때 오류가 표시됩니다 ..."
무엇이 잘못 될 수 있습니까?