MilindV
30th November 2010, 11:01
Hi All,
I have a requirement in developing a report on LN.
The layout of the report is As follows.

Header Layout
Before Field Layout
Detail Layout
After Field layout
and the layouts Before Field Detail After Field should get repeated on the same page.
So the report after printing should look like this.

Header Layout
Before Field Layout
Record 1
Record 2
Record 3
...
After Field layout
Before Field Layout
Record 1
Record 2
Record 3
...
After Field layout

The repeated layout should have the same data, as if you are printing a duplicate copy.
Report may also span to multiple pages depending upon the no of records.

Thanks and Regards,
--MilindV

MilindV
2nd December 2010, 06:36
Hello Frnds,

Any suggestions?? how to print layout twice?
Any questions?? Do I have to provide more inputs?
Is it possible??

sameer.don
2nd December 2010, 12:07
Is program script editable ??

If yes, you can add one more field for report input (say XYZ) with Sorting sequence 1, i.e. highest sorting priority.

Define after.field layout on this new field.

On program script, define the same variable and use rprt_send() twice in succession. But for the first time with XYZ=1 and for the second time XYZ=2. This will serve the purpose.

But if you do not have program script with you, then we need to think of some alternate way.

MilindV
2nd December 2010, 13:32
Thank You Don,

Nice Suggestion,

But. problem with approach is, Consider I can print only 20 detail lines per page. so on each page i can print 10 records +(10 duplicate record). Cause records should get duplicated on same page. So, in the scenario where I have 15 records. All fifteen records will get printed on 1st page, then 1st 5 duplicate records, and remaining 10 duplicate records on next page. My requirement is if there are 15 records n i can print 20 lines, then 1st 10 records will be printed on 1st page and also 10 duplicate records after that. and remaining 5 records will go to next page along with duplicate 5 records.

I hope cleared my point.

Also I am reluctant to make changes script.