Applies to version: 2023.1.x and above; author: Krystyna Gawryał
Introduction
Printing barcode labels is a WEBCON BPS functionality used to identify documents stored in paper form, for example, in accounting offices, companies providing shipping, logistics and courier services, as well as in warehouse spaces.
In On Premises installations, which by default have access to the resources of the local company network, barcode printing requires the creation of a suitable template, configuration of a dedicated action and a document entry point for a network printer to which barcode printouts will be directed.
This functionality is also available in WEBCONAPPS-SaaS installations, but in this case it is necessary to configure an additional SignalR Barcode Service so that the barcode printer shared on the network can communicate with Portal. This article provides detailed instructions for configuring the required service from the point of view of the Global system administrator.
Adding a Service agent
Start the configuration by adding a new Service agent. To do this, follow the steps below:
According to the message in the screenshot above, this secret should be saved right away, as it will not be possible to display it again later.
Downloading and configuring SignalR Barcode Service
SignalR service files can be downloaded also from the Admin Panel:
1. {
2. "Service": {
3. "Id": "", //Unique service ID
4. "Portal": {
5. "Url": "", // Portal URL
6. "ClientId": "",
7. "ClientSecret": ""
8. },
9. "LabelPrinter": {
10. "PrinterName": "", // Main printer
11. "PrinterNameKsMode": "" // Accounting printer
12. },
13. "Logging": {
14. "LogLevel": "Debug",
15. "LogToFile": true // Should write logs to file (service.log)
16. }
17. }
18. }
Fill in the missing data according to the instructions below:
Id – any unique service identifier; providing this value is optional, by default it will be the hostname,
Url – address of WEBCON BPS Portal (in WEBCONAPPS-SaaS version),
ClientId, ClientSecret – data of the Service agent previously added in the Admin Panel in Portal,
PrinterName, PrinterNameKsMode – address of the barcode printer (Main or Accounting printer). This address should correspond to the address of the printer selected during the configuration of the action Print a barcode label.
Detailed information on how to configure this action is available in the article: Restricting the availability of print a barcode label menu button and configuring document entry point (webcon.com).
Once the above configurations have been carried out and the "WebCon.BPSCloud.Service.exe" service has been connected to Portal in the WEBCONAPPS-SaaS version, it will be possible to use the barcode printing action. Running the action will send a signal to the indicated printer and print barcodes according to its configuration.
All information about the operation of the service is logged to the "service.log" file in the "signalr" folder.
SignalR Barcode Service versioning is independent of the WEBCON BPS version, so a system update will not require any changes to the service. Any information on the possible need to update the service will be included in the relevant "History of changes" document.