Category : templates

I’m using PHPWord to generate reports based on a template. I replace placeholders in that template $templateProcessor = new TemplateProcessor(‘template.docx’); $templateProcessor->setValue(‘placeholder_name’, ‘value5123’); and save the new file $templateProcessor->saveAs(‘report.docx’); Pretty straightforward. However, there are some values which are optional, so they leave stray placeholders behind, and the best I’ve been able to do is replace them ..

Read more

I would like my application to do the following: a) Upload an xlsx template which contains a pivot table and a chart into my application b) When a user makes a selection of the relevant data, a mixed dates-strings-numbers dataset is written into existing worksheet "Data"; on download the completed xlsx is refreshed and the ..

Read more

I would like my application to do the following: a) Upload an xlsx template which contains a pivot table and a chart into my application b) When a user makes a selection of the relevant data, a mixed dates-strings-numbers dataset is written into existing worksheet "Data"; on download the completed xlsx is refreshed and the ..

Read more