learner
5th June 2009, 18:05
Hi,
I have a pretty simple print session which sends some Order data on report including header text, now the problem which i am facing is with respect to page(). :(
Following are the layouts which i have defined within report
before.whinh200.orno.10:
Basically Ship to BP address details are printed
before.whinh200.orno.20:
order header text is printed ( header text can be 2 lines or may be 40 lines , its dynamic )
before.whinh200.orno.30
Labels like Order , pos, item are printed
detail.10:
Actual data is printed
after.whinh200.orno.10
a blank line is printed
Now my requirement is as soon as header text is printed via second layout i.e. before.whinh200.orno.20:, if it has exceeded lets say 35 lines on first page, i want my third layout to be printed on totally new page... but somehow page() doesnt work in before.layout, if i define the function page() in detail layout in r.script , it works... any idea what could be possible reason that page() doesnt work in before layout of order??
i read help for page() and it says it won't work in header & footer layouts, but doesnt say that u cant use in before.layout :confused:
i am clueless , if u have any other suggestion to achieve the same req. i dont mind working towards new approach. :)
Waiting for your reply.
Regards
Learner
I have a pretty simple print session which sends some Order data on report including header text, now the problem which i am facing is with respect to page(). :(
Following are the layouts which i have defined within report
before.whinh200.orno.10:
Basically Ship to BP address details are printed
before.whinh200.orno.20:
order header text is printed ( header text can be 2 lines or may be 40 lines , its dynamic )
before.whinh200.orno.30
Labels like Order , pos, item are printed
detail.10:
Actual data is printed
after.whinh200.orno.10
a blank line is printed
Now my requirement is as soon as header text is printed via second layout i.e. before.whinh200.orno.20:, if it has exceeded lets say 35 lines on first page, i want my third layout to be printed on totally new page... but somehow page() doesnt work in before.layout, if i define the function page() in detail layout in r.script , it works... any idea what could be possible reason that page() doesnt work in before layout of order??
i read help for page() and it says it won't work in header & footer layouts, but doesnt say that u cant use in before.layout :confused:
i am clueless , if u have any other suggestion to achieve the same req. i dont mind working towards new approach. :)
Waiting for your reply.
Regards
Learner