Nick
Nick

Reputation: 1243

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 this (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.

Upvotes: 0

Views: 1545

Answers (1)

thirtydot
thirtydot

Reputation: 228152

Have you considered PHPWord?

Note that it can only create the newer Office Open XML (Office 2007+) format documents.

Upvotes: 2

Related Questions