[Office Template] Header in Word document gives error in Word_FillMergeFields

[Office Template] Header in Word document gives error in Word_FillMergeFields

  
Forge Component
(22)
Published on 2014-01-03 by Paulo Garrudo
22 votes
Published on 2014-01-03 by Paulo Garrudo
Hi there,
We would like to use the Word mail merge in our application and it works well, if I do not use a header. Using the Report_Template.docx as an example, it merges. Do I put a simple header in the report template like just some words, a general error message occurs in the Word_FillMergeFields, and I do not know how to debug that one.

As we would like to generate Word documents spanning multiple pages using the client templates which use headers, we cannot do that right now. Is a fix possible or any other way around it? Footers do not give problems, and we are using Office 2007 right now, migrating soon to 2012 or 2013.

Regards,

Wilko
Can you provide an example (espace + docx)?


Hi CoolProfs,
We were quite busy last weeks, excuses for the late reply.
If we use report_template, everything fine.
If we use report_template_header, an error occurs.
As we seem to be able to upload one file only at the time, here is the template that works.
Regards,
Wilko





here is the template that does not work. The error message we get is:
There was an error processing your request. Please try again later...
Here is the OML.
The only thing we change is the resource in the Word_FillMergeFields Action in the Download Action. So if we use report template.docx, we get a report, if we use report template header.docx, we get an error. the difference is in the header in the template.
Regards,
Wilko