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

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -