I need to insert a page break before each item in a collection, except the first one. I wanted to do this in my DOCX template with <<if [item.IndexOf() > 0]>><<[ControlChar.PageBreak]>>< as I’ve seen done using the Aspose.Words library, however with the cloud service, I just get an error.
What is the recommended way to do this with Aspose.Words-Cloud?
@tim1schreiber1
It seems the API is not working as expected, so we have logged a ticket WORDSCLOUD-1416I in our issue tracking system for further investigation and rectification. We will update you as soon as it is resolved.
@tim1schreiber1
About the WORDSCLOUD-1416 ticket, please note the page break character is \f. Therefore an expected template is as follows. Hopefully, it will help you to accomplish the task.
<<foreach [in persons]>><<if [NumberOf() > 1]>><<["\f"]>><</if>>Name: <<[Name]>>, Age: <<[Age]>>, Date of Birth: <<[Birth]:"dd.MM.yyyy">><</foreach>>
Average age: <<[persons.Average(p => p.Age)]>>
The issues you have found earlier (filed as WORDSCLOUD-1416) have been fixed in this update. This message was posted using Bugs notification tool by Ivanov_John