Printer Service: Difference between revisions

From Bitnami MediaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 16: Line 16:
<strong>Printer Set Up</strong>
<strong>Printer Set Up</strong>
# Update the Novus configuration table.
# Update the Novus configuration table.
#* if this is a new installation, then add a row to the Novus configuration similar to the example below. The value for the column control_id
#* if this is a new installation, then add a row to the Novus configuration similar to the example below. The name in the column control_id must match the LocationId in the appsettings.json file (see above) and the value for the column control_value must be 1 (this tells the print service to populate the Printer table with all the local printers.
:::insert configuration ("LocationId": <span style="background-color: yellow;">control_id</span>,description,control_group,control_type,control_list,control_value,version)
::insert configuration (control_id,description,control_group,control_type,control_list,control_value,version)
:::values ('Get Printers "LocationId": <span style="background-color: yellow;">DonGriffinHome</span>','Updates the Printer table records.',null,null,null,1,0)
::values ('Get Printers <span style="background-color: yellow;">DonGriffinHome</span>','Updates the Printer table records.',null,null,null,<span style="background-color: yellow;">1</span>,0)




<strong>Return to [[Novus]]</strong>
<strong>Return to [[Novus]]</strong>

Revision as of 18:00, 18 September 2024

Installation

  1. If there’s an existing installation, move it to a different directory as a backup e.g. move C:\novus-printservice to C:\novus-printservice-2024-07-29
  2. Move the novus-printservice folder to C:\novus-printservice
  3. Edit the appsettings.json file and give the locationID a name. See example below.
{
"PollingTimeInMilliseconds": 60000,
"BaseUrl": "http://10.0.2.6:5001/",
"ApiKey": "CwOoD0L0h3oSVdDc_UYeKLD2uML7HDk3",
"LocationId": "DonGriffinHome",
"PdfFileDirectory": ".\\PDF Files\\"
}
  1. Go to https://dotnet.microsoft.com/en-us/download/dotnet/3.1. On the right side of the web page, on the row that says “Windows” click on the "Hosting Bundle" download link which is beside the “x64” and “x86” download links. After the download is completed, double-click dotnet-hosting-3.1.32-win.exe to install the ASP.NET Core Runtime 3.1.32 hosting bundle.
  2. Open PowerShell as administrator, and run sc.exe create "Novus PrintService" binpath="C:\novus-printservice\Novus.PrintService.exe". This will add a new Windows service.
  3. Open start menu, type in services.msc and press Enter key, scroll down to find and select Novus PrintService, right-click it. In the Properties, set startup type to Automatic, click Apply, click Start to start up the service, and click OK.

Printer Set Up

  1. Update the Novus configuration table.
    • if this is a new installation, then add a row to the Novus configuration similar to the example below. The name in the column control_id must match the LocationId in the appsettings.json file (see above) and the value for the column control_value must be 1 (this tells the print service to populate the Printer table with all the local printers.
insert configuration (control_id,description,control_group,control_type,control_list,control_value,version)
values ('Get Printers DonGriffinHome','Updates the Printer table records.',null,null,null,1,0)


Return to Novus