pralash
26th March 2019, 13:44
Hi,

I have customized a report... Here i don't have the UI script but i have report script.... Whenever i print the detail.1 layout, each record in the detail layout are printed single record for each new pages...

But i want to print all records in the same page... My report script as follows...

after.receive.data:
if pos(tisfc001.pdno,str) then
tisfc001.pdno=" "
else
str =tisfc001.pdno
endif

detail.1:
before.layout:
bcode = trim$(tisfc001.pdno & " " & str$(tisfc010.opno))

Note : mentioned the condition "not isspace(tisfc001.pdno)" as a output expression in detail 1 in order to avoid the duplicate records...

Can anybody please advise how to print all records in the same page....

Thanks in advance...

Regards,
Pralash

mark_h
27th March 2019, 02:41
Make sure the layout does not have page checked on it. That is what I would first look for in 4c4. With this checked it would start a new page each time the layout is hit.

pralash
27th March 2019, 05:50
Hi Mark,
Thanks so much for your response.... As you told i'm not checking the "New Page" check box in the report layout as shown in the attachment... So how each record is printed in a new page...?

Suppose if i click the "New Page" checkbox on the script layout then only we can get each records in a new page... But i'm not selecting this "New Page" checkbox....

Actually i copied an existing report and also create a new one... i have customized in the new report. We can get each record for individual pages in the old existing report also... Similarly i get the same in my current report.... I think there is any logic is implemented in the UI script in order to print each record in the individual page...?

At the same time, i don't have t UI script for checking this... Hence can you please suggest is there any other option for getting all records in one page instead of individual page....?

Thanks in advance...

Regards,
Pralash

bhushanchanda
27th March 2019, 10:53
Pralash,


Check the Page length for the report and also check the length of your Detail.1 and see if its not covering the entire page.

pralash
27th March 2019, 12:17
Hi Bhushan,

Page length of report is -1... I'm not able to change... and the row length of detail.1 is 2... So how can i get all records in one page by changing this arguments...

Please suggest your valuable idea....

Thanks,
Pralash

mark_h
27th March 2019, 14:52
Is there a barcode or anything in that detail layout? My first thought was run it where you only get 2 records and put the report in debug mode to see what is happening. I don't know enough about LN to know if there is something else that could cause this.

pralash
28th March 2019, 05:49
Hi Mark,

As you told, detail layout contains Barcode... But i'm able to print multiple records as per my requirement by using some programming logic in my report script... So the output is fine now...

Thanks a lot for your valuable guidance Mark....
Regards,
Pralash