Report: How to get the current page and line number
currently I'm writing an report to write the content of several models into a word document.
Is there any possibility to get the current page number and the current line number?
I know, I can write the current page number with "File.OutputField(Constants.FIELD_PAGE, ...)" directly into the document. But I need it in a variable for later use.
And the line number or the position on the current page I need to see if the next chapter, table or picture suites in the current page or should I begin the next page.
Many thanks in advance to everyone who has an idea.