Hello all,
I have a problem with property Context.setProperty("use-new-output", parameter).
My report includes several sections , which are responsible for the TOC , the output table values , etc. When I use Context.setProperty("use-new-output", parameter) with parameter "true", adds a empty sheet at the end of the report (after sections). If "false" - the report is output normally (....but TOC isn't numbered).
What it is necessary to make that the empty sheet wasn't output at the end of the report?
Thanks!
Hi Alexander,
using the new output object, a section is only created in your document, if it contains some output. Furthermore using the new output object you need a new section only if your document style/layout demands this, so you do not need a "technical" section for the TOC anymore.
BR, Torsten
Hi Torsten,
Thanks for the reply!
Yes, I use a new section (BeginSection) to resize certain
sheets , and output information on new sheet. But I don't use some other output, and don't use other constants(FIELD_NEWPAGE or FIELD_NEWSECTION) that would create an empty sheet. I removed a section of TOC, but nothing has changed.
I wrote a simple example that should , in theory, output three sheets but output four . Could you take a look at an example , and say, that am I doing wrong?