a.nef Posted October 16, 2018 Share Posted October 16, 2018 HiTaking up a rather old question (https://community.jaspersoft.com/questions/522289/printing-labels-how-skip-first-x-labels): Is there a way to tell jasperreports to start printing labels at a given position? Link to comment Share on other sites More sharing options...
bsvorinic Posted November 5, 2018 Share Posted November 5, 2018 We use Oracle and the way we solve this is to add some "blanc"/"empty" records at the beginning of result dataset, something like:SELECT ROWNUM * - 1 AS ord, '' AS text1, '' AS text2 FROM dba_objects WHERE ROWNUM < 10UNIONSELECT ROWNUM AS ord, 'some text1' AS text1, 'some text2' AS text2 FROM dual ORDER BY 1;You can than use JasperReports parameter to define number of blank rows needed (replace " ROWNUM < 10" with " ROWNUM < $P{NUMBER_OF_BLANKS}" or whatever you want to call this parameter)... HTH,Bruno Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now