News

Insert an external Word document into your Word template

  • 06/06/2011

You may replace a single template variable within your Word template by the contents of a full docx document with just one single line of code and the help of the addTemplatevariable method:...

Read More

Adding HTML to a template variable in PHPDocX

  • 06/06/2011

Like add the contents of a docx document, you can add HTML in a variable of a template. You don't need to call a document, ut ad this HTML manually or using other import functions. Here is the code:...

Read More

Inserting a RFT document into your Word template

  • 06/06/2011

You may replace a single Word template variable by a full RTF document with the help of the addTemplateVariable method: require_once '../../classes/CreateDocx.inc'; $docx = new CreateDoc...

Read More

Add a footnote to a chart in a Word document with PHPdocx

  • 06/06/2011

This information is outdated, please, refer to the addFootnote and addText documentation for up to date info. In you want to add a chart (pie, bars) in PHPdocx is easy. There are several blog posts...

Read More

Creating a Report using PHPdocx

  • 06/06/2011

This is an advanced example of how to use PHPdocx to create a complete Report. The code is commented to make easy to understand how it works: require_once '../../classes/CreateDocx.inc'; $do...

Read More