Hi,
I'm currently trying to write a template that will allow me to combine multiple confirmations into a single PDF file. To do this I created a buy and sell template and got them working with individual confirmations. Then I created a wrapper template that would call the appropriate buy or sell template depending on their type. All of my templates are being rendered correctly, however the first page is always blank.
My test data contains two buys and a sell, but the resulting pdf is as follows:
Page 1: blank
Page 2: Buy Confirmation
Page 3: Sell Confirmation
Page 4: Buy Confirmation
My wrapper template simply contains the following:
«rs_confirmations.confirm»
«refLookup:SubTemplate»
«es_confirmations.confirm»
The two sub templates (buy and sell) are both under a page in length.
Any help would be appreciated.
System Details:
Windows XP 32bit
Docmosis 2.2.1 (3020)
Open Office 3.2
Hello Shollaway.
There's quite a few possible causes of this. Most likely options:
1) you sub-templates are a big table which is not allowed to break across a page.
2) your main or sub-templates have a page-break or section-break in them (turn on Paragraph markers to see if there's a page break). Usually your template would have a corresponding blank page making it pretty obvious though.
If neither of these help, please reply back and we'll find more options for you. Can you also say whether your templates are Open Office Writer or Word format?
Regards.
Paulj.
Hi Paulj,
After a lot of fiddling round I've worked out what is happening. Basically if the first line of the sub-template is a table, then it is inserting a page break. Adding a blank line to the top of the sub-template solves the problem.
Looks like a bug to me in either Docmosis or Open Office ... I leave that to someone else to work out. In the mean time it might be a good idea to add this to the Known Issues page.
Cheers.
