shanmukhi
15th October 2008, 08:57
Hi,
how to read a report automatically without selection.
ex:-
A session contains two reports.
Depending on one field,i need to pick the report automaticcay and print tht.
plz suggest.

bdittmar
15th October 2008, 13:52
Hi,
how to read a report automatically without selection.
ex:-
A session contains two reports.
Depending on one field,i need to pick the report automaticcay and print tht.
plz suggest.

Hello,

have a look at :

http://www.baanboard.com/baanboard/showthread.php?t=53907

Regards

george7a
15th October 2008, 13:54
Do you have the code of this print session?

- George

shanmukhi
15th October 2008, 14:27
yes i have the code for this print session.

shanmukhi
15th October 2008, 14:31
Hi,
After declaring the below mentioned,brp.open should be used?

choice.cont.process:
on.choice:

spool.device = "ZEBRA_WESN"
spool.report = "rdhpur044511bbd"

functions:

function read.main.table()
{

select tdzfc100.*
from tdzfc100
where tdzfc100._index1 inrange {:comp.f, :tran.f,
:orno.f }
and {:comp.t, :tran.t, :orno.t }
order by tdzfc100._index1
selectdo
| if etol(tran.f) = 1 then
| rep.no = brp.open("rtdzfc140001999","D",0)
| else
| req.no = brp.open("rtdzfc140001000","D",0)
| endif
rprt_send()
| brp.ready(rep.no)
| brp.ready(req.no)
| brp.close(rep.no)
| brp.close(req.no)
endselect
}

george7a
15th October 2008, 15:20
There is an example for brp.open here:
http://www.baanboard.com/programmers_manual_baanerp_help_functions_reports_brp_open

An Example for rprt_open() can be found here:
http://www.baanboard.com/programmers_manual_baanerp_help_functions_reports_rprt_open

- George

shanmukhi
17th October 2008, 10:27
That means we can use rprt.open instead of brp.open if report is only one.Isn't it?