VishalMistry
20th June 2016, 19:26
hi all,
i have a report with layouts as given in attachment. the problem is after printing records on every page, the report prints four blank lines.
i want to print the report in such a way that it should print headings once and then all the records without any gape between pages.
the report is printed on device with rewrite file type (ASCIF).
can anybody shed light what silly mistake am i making ?
regards,
Vishal
bdittmar
20th June 2016, 20:28
Hello,
no attachment !
Regards
andreas.toepper
21st June 2016, 10:02
When I create a new Report, using the report-Generator, it always will have two layouts: one header and one detail layout.
The header layout will be repeated on every page, so I'm changing the header layout into a before report layout (a layout that will be printed only one time at the start of the report; you'll need to copy the layout into a new one and delete the old one).
After doing so I'm always startled by looking at a blank screen (scroll down, data is really there). The new before.report layout has the option "new page" activated, so deactivate it (I always forgot this option when copying the layout in LN... ;-) )
Some empty lines will remain. This are the on the second page of the reports session (set Top Margin to zero).
Ajesh
21st June 2016, 12:44
If you want the header to print just once and all the detail records after that, copy the contents of the header to before.report and delete the header.That way the content of the "header" will be printed just at the starting of the report.
Yes, and attaching the images wouldnt harm anybody.
mark_h
21st June 2016, 16:17
Actually what we do is use the report script. So we add something to the layout output expression like header_cnt =0. Then in the script in the before layout of the detail layout we add something like if spool.device = "excel" then header_cnt=1. This way when a person picks excel they only get the header once. Now the problem you might run into is with margins - you have to get those set correctly also or you will end up with blank lines between the pages. The same will happen with the before.report section. So make sure all your margins are 0.