If you print a document by WebApps (Client or Desktop), the request is sent from the client to the Web server, and then to the Common server. Then, the Common server prints the document.
But the Common server can only use printers, to which the service has access. In this example, only Printer A+B are accessible but Printer C+D are not:
In the previous versions, if you opened the Station settings > Location definitions, you could see the Printer from the current desktop: Printer C+D.
Now the System displays the printer driver which is available in view of the Common server - service.
In this example: Printer A+B
This makes it possible to see only available printers.
If the common service is not active, the system returns a warning message and displays local printer drivers - in the above example: Printer C+D.
New: Simple customization - use the correct printer
You can customize the printer setup and define a printer driver.
Example:
workordermanagement.receiptline
You would like to print labels during production, but the correct printer is defined in location settings.
Correct variant is:
If the location is not empty, you can read the setting from the location and use this as the printer driver:
printobject=setvar=sofortdruck=J
printobject=setvar=druckcopy=1
printobject=setvar=WO_number=<e_WoDocEntry>
printobject=setvar=ItemCode=<e_ItemCode>
printobject=setvar=ItemName="Helllo"
printobject=setvar=Qty=<e_Quantity>
printobject=setvar=BatchNo=<e_DistNumber>
//printobject=setvar=belpos_id_bis=<e_belpos_id>
printobject=parameter
printobject=parameter_set
// in future you don't need this:
//if <system.location> <> "" then
// select "DRIVERNAME" into :ls_drivername from "BEAS_SYS_LOCATION" where "LOCATION_ID"=<system.location,dbstring>
// if <var:ls_printername> <> "" then
// printobject=crreport=selectprinter=<ls_drivername>
// end if
//end if
printobject=print=MyReport.rpt
With this new Beas version, you don't need to define the driver which is saved in the location.
If you don't define a driver and a driver is defined in the location settings, the system will use this driver.
Compatibility:
If you overwrite the "selectprinter" - property, it has higher priority than the printer defined in the location.
Existing scripts are running without changes.
Comments
0 comments
Please sign in to leave a comment.