Creating (styled, with image header) Word documents in PHP?
I'm currently using the Word COM object which is massively flaky but does the job.
Unfortunately the settings have been changed on the server so I can no longer access this, and am looking at alternatives.
I quite like the idea of the fopen route, which apparently lets you style things in HTML for use on the page, but whenever I try t开发者_开发知识库his (or use examples from the web) it just places the HTML code directly into the page 'as is' - not very useful.
Can anyone please recommend a good alternative to this, and the COM object? If indeed there is one...? My main requirements are for the documents to be saved on the server, as well as allowing me to enter an image into the header.
Have you considered PHPWord?
Note that it can only create the newer Office Open XML (Office 2007+) format documents.
精彩评论