Hi Patrick,

I have approached this differently.

On disk, I have a php file for every “report” that I want to produce. Inside 
that php file I have a placeholder. When I need to run my report, I generate a 
series of php statements that define a data structure that I then insert into a 
copy the PHP file. I use an external version of PHP to execute the save php 
script.

Doing this method, I am able to have a PDF and Word versions of the same report 
and there is no changes to make in my 4D Structure other than decision logic to 
decide which PHP file to use as a source.

I have used composer to install phpword into a vendor folder.

Some advantages are that I can easily test my report by executing the php file 
directly from the command line. All that is needed is to insert some data into 
the file.

I will send you a sample of one of the reports offline.

Dani


> On Jan 24, 2018, at 6:26 AM, Patrick Emanuel via 4D_Tech 
> <[email protected]> wrote:
> 
> I forgot to answer to this: What do you have in your autoloader.php file? 
> it is not mine, but the phpword one. It is a part of the php librairy. 
> 
> Patrick
> 
> 
> 
> -----
> Patrick EMANUEL
> ------------------------------------------------------------
> Administrator
> www.association-qualisoft.eu 
> (Soft1002, Simply Asso & QS_Toolbox)
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to