pramod
26th July 2013, 19:36
Is there a way to print a layout conditionally depending on what device entered.
Thanks.

bhushanchanda
26th July 2013, 20:06
Yes,

This can be done.

Check this:-

Link 1 (http://www.baanboard.com/programmers_manual_baanerp_help_functions_spooling_spool_open)

Link 2 (http://www.baanboard.com/programmers_manual_baanerp_help_functions_reports_rprt_open)

A way to do this can be to get the device name a variable using spool.device and based on its value you can design the layouts.

pramod
26th July 2013, 20:38
Thank you Bhushan, spool.device is what I was looking for but could not recollect/find it.

baan.kmurali
1st August 2013, 15:21
For Excel Device : brp_id1 = brp.open("rltlnt022011002","B2EXCEL", 0)
For File : spool.fileout = path.h & "/vitem.xls"
brp.id1 = brp.open("rteinv888811312","ASCIF",0)
rprt_send()
brp.ready(brp.id1)
brp.close(brp.id1)