Joy Conner
14th August 2014, 21:36
I feel like this is a stupid question because I have done this and never had the problems I have today.

I have a script and 3 seperate reports. Based on criteria, one of the 3 reports, which are labels, needs to print. The script is a WIP right now. I expected to use the brp.open(), etc commands but no data printed. I check make sure all variables are externs. So I use rprt_open(), etc commands and the data is printed.

I even generated a new session with a report on a single table, just printing 3 fields. The data prints with the rprt commands but not with the brp commands.

Is there an #include. I've looked at other scripts and there are no #includes.

I have recently upgrated from SP19 to SP32. Also migrated from Unix to Windows, but I doubt the migration would affect this.

Thank you in advance for any help.
Joy Conner

RieseUSA
15th August 2014, 01:47
Joy,

Are you using a mix of the rprt & brp commands?

The rprt commands are 'short' versions for the brp commands, but they cannot be mixed. For example, rprt_open is like brp.open( spool.report, spool.device, 1 ).

When you open the one report with brp.open(), you get a brp_id. Are you using this id when you are sending data with brp.ready(brp_id)?

Finally, I am assuming that you are closing the report with brp.close(brp.id). Otherwise, I would expect that the session gets hung up afterwards.

Yours,
Stephan

vamsi_gujjula
15th August 2014, 14:03
brp.* should work.

probably you can use this DLL tcomdll0010 ( report function in ERPLN , not sure abt baan iv) if it works then its well and good

the other option for rprt_* is... by attaching

1 report as 1st group
2nd report as 2nd group
3rd as 3rd group.

and then setting reportgrp as per your logic ,

Joy Conner
15th August 2014, 20:24
I got it. I did something stupid. brp.send() instead of brp.ready(). Glad the commands were not depreciated.

Sorry for wasting your time.

Joy :o