I have a client with reports running on their intranet. These are produced using PHP to connect to the FoxPro backend. They're now wanting to be able to dynamically create Word documents from some of this data, specifically they want to generate client letters for quotation work on the system.
Ideally I'd like to have a template doc that will contain variables that can then be replaced with values from the database. The document should then be saved to the server with a unique name.
I've taken a look around and there seem to be several ways to achieve this. Does anyone here have experience of this and be able to recommend the best method?
I was looking at phpdocx which looks good, but its $90 for the version that supports templates and I'm reluctant to part with that without trying it first to ensure it meets my needs. Any other alternatives?
Don't mind coding it myself if that's needed but I'm hoping there is something already out there (free preferably!!) that can do this.
Thanks.
Ideally I'd like to have a template doc that will contain variables that can then be replaced with values from the database. The document should then be saved to the server with a unique name.
I've taken a look around and there seem to be several ways to achieve this. Does anyone here have experience of this and be able to recommend the best method?
I was looking at phpdocx which looks good, but its $90 for the version that supports templates and I'm reluctant to part with that without trying it first to ensure it meets my needs. Any other alternatives?
Don't mind coding it myself if that's needed but I'm hoping there is something already out there (free preferably!!) that can do this.
Thanks.