php - how to generate microsoft word 2010 with phpWord -
i working on php project need generate microsoft 2010 document on fly , send 64encoded document web server using curl request. web server accept 2010 word. 2007 word file generated following code(using word2007 writer)was not accepted:
$phpword = new phpword(); $section = $phpword->createsection(); $section->addtext(....); $section->addtext(...); $objwriter = phpword_iofactory::createwriter($phpword,'word2007'); $filename = "example.doc"; $objwriter->save($filename);
does know how generate ms word 2010 file php code?
thanks!
Comments
Post a Comment