cobi.wms:print_service
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
cobi.wms:print_service [2022/09/01 10:07] – created tkammer | cobi.wms:print_service [2023/06/23 08:54] (current) – [Installing the COBI.wms Print Service] tkammer | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Print Service ====== | ====== Print Service ====== | ||
- | The COBI.wms Print Service is an MS Windows service which receives commands from the Android app and triggers a print event on the Windows machine. Currently, it only supports doing so by generating a Coresuite Remote Print XML file. | + | The **COBI.wms Print Service** is an MS Windows service which receives commands from the Android app and triggers a print event on the Windows machine. |
- | Download: {{cobiwms-print-service.zip}} | + | ===== How it works / Limitations ===== |
- | ===== Install ===== | + | **Currently, |
- | | + | The service generates XML files and puts them in a folder that is scanned by Coresuite Designer, which takes care of the actual printing. |
- | - Run the following command in '' | + | |
- | - Create '' | + | See here for the relevant Coresuite documentation: |
- | - You can now start/stop the service from the MS Windows | + | |
+ | http:// | ||
+ | |||
+ | Only the **User** and **Parameter Scan-Path** fields need to be filled out. | ||
+ | |||
+ | Also, if you don't have Coresuite Service, then at least one SAP Business One client must be running at all times for Coresuite Designer to process | ||
+ | |||
+ | https:// | ||
+ | |||
+ | (If either | ||
+ | |||
+ | XML files that are placed into the folder will be moved automatically into a sub-folder called | ||
+ | |||
+ | **NOTE:** All of the above is done by Coresuite, not by the COBI.wms Print Service. | ||
+ | |||
+ | ===== Installing the COBI.wms Print Service ===== | ||
+ | |||
+ | First of all, make sure that a recent version of the Microsoft .NET Framework is installed. | ||
+ | |||
+ | Download the program here: {{cobiwms-print-service.zip}} | ||
+ | |||
+ | - Extract the ZIP into a folder called exactly | ||
+ | - Open the folder, right-click on '' | ||
+ | - At the bottom of the Properties window, check " | ||
+ | - Start '' | ||
+ | - Enter this command: '' | ||
+ | - Create | ||
+ | |||
+ | **Note:** Currently it is not supported to install the service under any other path than '' | ||
+ | |||
+ | After the service is installed and the configuration file is created, you can start/stop the service from the MS Windows | ||
Example config for single-tenant setup (e.g. on-premises or private cloud): | Example config for single-tenant setup (e.g. on-premises or private cloud): | ||
Line 24: | Line 54: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | The **PrintDirectory** must correspond to the **Parameter Scan-Path** of the Coresuite Designer configuration; | ||
Example config for multi-tenant setup (e.g. public cloud): | Example config for multi-tenant setup (e.g. public cloud): | ||
Line 45: | Line 77: | ||
In a multi-tenant environment, | In a multi-tenant environment, | ||
- | Note that the COBI.wms Print Service does not support encrypted communication. | + | **NOTE: |
- | ===== Update | + | |
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | First of all, make sure that the COBI.wms Print Service and the Coresuite Service are both actually running. | ||
+ | |||
+ | If XML files **are** appearing in the '' | ||
+ | |||
+ | * Make sure the Print Definition ID and Layout ID are configured correctly in the Android app. See [[COBI.wms: | ||
+ | * Make sure Coresuite Service (or an SAP Business One Client with the Coresuite Designer add-on) is running and that it's configured correctly. | ||
+ | |||
+ | If the XML files are **not** appearing in the '' | ||
+ | |||
+ | * Double-check the configuration file. For example, note that you must use double-backslashes ('' | ||
+ | * Make sure the COBI.wms Print Service is really running by using the MS Windows **Services** application. | ||
+ | * Make sure the TCP Port on which the Service is listening can be reached from the Android devices COBI.wms is running on. | ||
+ | * Use the MS Windows **Event Viewer** application on the server on which the COBI.wms Print Service is running, and navigate to **Windows Logs --> Application**, | ||
+ | |||
+ | If the COBI.wms Print Service is running but not logging anything at all, it means that it's not receiving any commands from the Android app, in which case double-check that the TCP Port is open and reachable from the Android devices. | ||
+ | |||
+ | ===== Updating | ||
- Stop the service. | - Stop the service. | ||
- | - Extract the contents of the new ZIP file into '' | + | - Extract the contents of the new ZIP file into '' |
- Start the service. | - Start the service. | ||
cobi.wms/print_service.1662019647.txt.gz · Last modified: 2022/09/01 10:07 by tkammer