ngs-doo / TemplaterExamples

Creating reports in .NET and Java
https://templater.info
The Unlicense
48 stars 27 forks source link

Page breaks in Excel not conserved by Templater? #75

Closed asmaier closed 2 months ago

asmaier commented 3 months ago

I have a simple Excel file where the right two columns are outside of the page

pagebreak

This file has no templater tags. I simply run this file using an empty json file as data source like

 java -jar templater-json.jar pagebreak.xlsx empty.json pagebreak_out.xlsx

When I open the output Excel file I would expect no changes. However I can see in the page break view, that the page break has been changed

pagebreak_out

Am I doing something wrong? Is this a bug? Or is this a limitation of the templater tool?

Files used: empty.json pagebreak_out.xlsx pagebreak.xlsx

zapov commented 3 months ago

Hm, this looks like limitation of the unlicensed version. Due to way how watermarking is implemented it breaks this template once new sheet is added.

I tested it with valid license and print area remains as is.