For an application we are building we are using OfficeUtils to export to a Word template.My question is whether there are some restrictions regarding the use of a different lay-out in Word?
What is happening right now, is that we have a template with a certain lay-out and some fields have to be filled in. However, when we fill in the fields with information from the application, instead of 2 pages as the Word Document needs to be, 19 pages are created. The merge fields are filled in correctly, but there are just a lot more pages.
Any suggestions? Attached is a simplified version of the Word File with too many pages...
Daan Brandenburg wrote:
Can you please provide me a Template of word document that you have been used that i can look at it structure inside to give any ideas.
Yes, see the attached file.
By comparing your template with the generated file, i came to the conclusion that your template includes line breakes (result of pressing SHIFT + ENTER), and those are somehow being replaced by the component with pagebreacks on the generated file (see attached screenshot).My advice would be to replace on the template those line breaks with regular line terminators (result of pressing ENTER) and then adjust the paragraph properties so that the spacing between lines is 0.
Thank you Elena!
It looks a lot better now.