kberogluer
14th December 2009, 16:29
I have written a 3gl baan script for special purpose and it is going to be run on rf terminals by using telnet. In addition to that i would like to print to any specific printer in the very same 3 gl script session.

Any suggestion will be appreciated. Thanks...

george7a
17th December 2009, 12:47
Can you please elaborate? What are you printing? is it a baan report or an other file?

Are you printing to UNIX printer?

kberogluer
21st December 2009, 14:02
The report is going to be a baan report. What I would like to know is how to manage to print by using 3GL script.

mark_h
21st December 2009, 14:49
Can't you use the brp spool commands? Never tried this myself. You can define a report and then just call it via brp commands - I know to call a report it does not have to be attached to a session, but never tried this in a 3gl script.

kberogluer
23rd December 2009, 10:31
unfortunately it is not working in 3GL.
brp spool report is also supported in 4 GL as far as i know.

Juergen
23rd December 2009, 11:57
Have a look to the spooling functions.

With this functions (spool.open(...), spool.close(), spool.line() ...) you are able to handle printing and printer devices also in 3 GL scripts.

Regards,
Juergen

mark_h
23rd December 2009, 15:54
Try including the ottstp_stddll when compiling the program and use brp.open.language which is part of the library. I also see brp.close in the library. Not sure about plain old brp.open. This library also contains spool.open.

mark_h
23rd December 2009, 15:56
PS - you can use bic_info6.1(or your version) to see what all functions are in the library.

kberogluer
24th December 2009, 11:58
i would like to thank to every person for their suggestions. I 'll try these alternatives and analyze.
Best Regards