Skip to main content
Skip table of contents

PrinterController

General

The COGLAS PrinterController is a program for transferring print data to the print service (SumatraPDF). The print service will send the print data further to the appointed printer driver.

The PrinterController is used to make local printers available in the COGLAS web service, for example from the customer network.

The COGLAS PrinterController is version-dependent and is provided with the COGLAS release.

The COGLAS PrinterController is intended as an on-premises solution. Example: The Customer solution is in the cloud. The customer printers are only available from the customer network. Therefore a local COGLAS PrinterController can be installed to gather the printer data and provide it to COGLAS web service in the cloud.

The COGLAS workstation function must be activated.


Installation

The COGLAS PrinterController is installed and set up locally on the target server together with the SumatraPDF print service.

Action

Description

1

SumatraPDF

The SumatraPDF print service is required to run the COGLAS PrinterController.

For a description of the setup, see Print service SumatraPDF - Helpcenter English - Confluence (atlassian.net).

2

COGLAS PrinterController

Preparation. Store the rollout locally on the server. Unpacking the ZIP archive. Example folder = “C:\Program Files\COGLAS\PrinterController”.

Installation. The COGLAS PrinterController is installed as a Windows service. Local ADMIN rights required.

Windows service installation:

  • sc create COGLAS_PC binPath="C:\Program Files\COGLAS GmbH\PrinterController\CoglasPro.PrinterController.exe"

Windows service de-installation:

  • sc delete COGLAS_PC

Configuration. The file "appsettings.json" holds the confiiguration of the COGLAS PrinterController. It contains the connection and user data for authentication.

Firewall / network release. For the HTTPS and websocket (WSS) connection between the OnPremises and the cloud COGLAS web service, network and firewall access must be checked by the customer for data exchange and set up if necessary.

3

Manual start
COGLAS PrinterController

  • The manual start is available for the connection test.

  • To do this, open the Windows command prompt in the PrinterController programme directory

Call:

  • CoglasPro.PrinterController.exe --console

The command must be called in the COGLAS PrinterController programme directory.

  • A running environment of the COGLAS PrinterController is executed in the Windows command prompt. The COGLAS PrinterController can be used normally. The connection and logging can be checked.

  • At the end of the test, the manual start should be stopped again. To do this, press CTRL+C several times in the Windows command prompt window or simply close the window.

Note:

  • Only one instance of a COGLAS PrinterController can run on a computer.

  • Stop the Windows service to perform a manual start and vice versa.

4

Automatic start
COGLAS PrinterController

  • The COGLAS PrinterController has been set up as a Windows service.

  • The Windows service can now be stopped/started manually in the list of Windows services.


Programm update

The COGLAS PrinterController is installed and is going to be updated with a new program version.

Action

Description

1

Preparation

  • Store the rollout locally on the server.

  • Unpacking the ZIP archive.

  • Create a backup of the current installation of the COGLAS PrinterController. To do this, copy the productive programme directory and store it separately in a !Backup directory.

  • The backup directory should contain the date and version of the software.

2

Software update

  • Exit COGLAS PrinterController if it is still running (e.g. stop windows service).

  • Copy the new version from the unpacked ZIP archive into the productive program directory.

  • Confirm to overwrite the files.

  • Finished.

3

Software start

  • Start COGLAS PrinterController (e.g. start windows service).

  • Check a test print as soon as possible.

4

Configuration file
“appsettings.json“

  • The settings do not usually change.

  • The file can remain unchanged for the version update.

  • If there are changes, we recommend using one of the two ‘Template_***_appsetting.json’ files to capture a current configuration.

  • “Template_http_appsetting.json” = For an HTTP connection.

  • “Template_https_appsetting.json” = For an HTTPS connection.


Program logging

Action

Description

1

Logging standard

  • Directory = ".\printercontroller\logs"

  • Example file name "log-2024-07-15.log". Daily logging file.

  • Retention of ALL log files.

2

Log configuration "nlog.config"

  • Logging with custom settings possible.

  • configuration optional

3

Example NLog parameter

  • maxArchiveFiles="90" for maximum number of files.

  • fileName="(..)" Path and file name


Network diagram


Example: COGLAS Webservice onCloud (OTC, Azure)
COGLAS PrinterController onPremises

  • The PrinterController is set up and started as a Windows service with the user "local system".

  • The PrinterController transfers the list of locally available printers to the COGLAS web service.

  • In COGLAS, one or more positions can be recorded for the workstation with access to the printers of the PrinterController.

  • The printout is sent directly to the PrinterController and through to the printer.


Example: COGLAS Webservice onPremises
COGLAS PrinterController onPremises

  • As before.

  • The COGLAS Webservice and COGLAS PrinterController are onPremises

  • However, they are set up on separate servers.

    • Server A is set up with the COGLAS Webservice.

    • Server B is set up with the COGLAS PrinterController.

  • All relevant printer names are provided on the customer print server (Server B). The COGLAS PrinterController set up here provides the locally available printers to the COGLAS web service.


Handover to customer administration

The COGLAS PrinterController is a solution for on-premises use. This raises the question of maintenance and administration of the installed solution.

In principle, the installation is transferred to the customer's administration after commissioning.

Administration includes the following tasks:

  • Checking whether the software solution is active and data is being processed.

  • Checking the logging and whether ERROR messages occur, for example.

  • Proper restart of the COGLAS solution.

  • Test the function in the COGLAS WEB WMS solution.

The customer must provide one or more contact persons for this task.
The person needs access to the server on which the COGLAS solution is set up. Administrative access to the COGLAS solution is also required, for example to be able to stop and restart the Windows service of the COGLAS PrinterController with the ‘local administrator’ user right.

If the customer administration does not get any further, an enquiry can be reported to COGLAS Support at any time. Please use the contact agreement at https://help.coglas.com/en/contact.


→ back to COGLAS processes
→ back to COGLAS menu

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.