arunprasath
8th August 2002, 08:07
Has anyone done automation of printing using BOI?
The requirement is to fire a report using BOI.
I am able to get the output of the report to a file in a specified location. But I am unable to force the output directly to a printer.
I am using Windows NT 4.0. BaaN IV c4. SP8.
If anyone has done it, kindly post here.
thanks in advance,
regards,
s.arun prasath

Jeyaseelan
9th August 2002, 13:51
Hi Arun,
Java introduced new Print Service API's javax.print. You can import this package in your client which acess the BOI. Java Print Service API has the following classes.

Doc
- Specifies the interface for the print data.
DocPrintJob
- Initiates printing on the Doc with the specified attributes
DocFlavor
- Specifies the format for the print data
PrintService
- Describes a printers capabilities and creates a DocPrintJob
PrintServiceLookup
- Finds printers capable of printing the specified flavor and supporting the specified attribute set.

Jeyaseelan

shasbe
15th August 2002, 19:46
Hi Arun,
You can write a BOI to print reports in Baan. You will have to write a BOI on print session and then it will allow u to do similar stuff as u do printin manually.

You can also pass the printer name, type, filename(if type is ASCII or ASCIF...), etc to this boi.

Regards
Sudhir Hasbe

harsh_madan
16th August 2002, 15:03
This should be possible using the function brp.open() function in the script which is used to print the report.

arunprasath
21st August 2002, 18:24
Hi shasbe,
I am making the Boi for a print session only.
I am making the Boi to redirect the output of the session into a printer.
but when I run the java client, the java client just hangs.
expecting ur reply.
s.arun prasath