Printer Service: Difference between revisions

From Bitnami MediaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
<string>Installation</strong>
<strong>Installation</strong>
# 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
#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
# Move the novus-printservice folder to C:\novus-printservice
#Move the novus-printservice folder to C:\novus-printservice
# 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.
#Edit the appsettings.json file and give the locationID a name. See example below.
# 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.
::{
# 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.
:::"PollingTimeInMilliseconds": 60000,
:::"BaseUrl": "http://10.0.2.6:5001/",
:::"ApiKey": "CwOoD0L0h3oSVdDc_UYeKLD2uML7HDk3",
:::"LocationId": <span style="background-color: yellow;">"DonGriffinHome",</span>
:::"PdfFileDirectory": ".\\PDF Files\\"
::}
# <li value="4">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.</li>
#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.
#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.
 
<strong>Printer Set Up</strong>
#Update the Novus configuration table.
#*if this is a new installation:
#**Add a row to the Novus configuration table 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 <span style="background-color: yellow;">DonGriffinHome</span>','Updates the Printer table records.',null,null,null,<span style="background-color: yellow;">1</span>,0)
#**After 1 minute or so you can query the Novus Printer table. All local printers should now be listed in the Printer table. In addition, the value of the column control_value in the configuration table will now be set to 0.
#*Adding new printer to an existing installation:
#**Update the Novus configuration table to set the value of the column control_value to 1 similar to the example below.
::::update configuration set control_value = <span style="background-color: yellow;">1</span> where control_id like '%<span style="background-color: yellow;">DonGriffinHome</span>%'
#**After 1 minute or so you can query the Novus Printer table. All local printers should now be listed in the Printer table. In addition, the value of the column control_value in the configuration table will now be set to 0.
 
 


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

Latest revision as of 18:47, 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:
      • Add a row to the Novus configuration table 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)
      • After 1 minute or so you can query the Novus Printer table. All local printers should now be listed in the Printer table. In addition, the value of the column control_value in the configuration table will now be set to 0.
    • Adding new printer to an existing installation:
      • Update the Novus configuration table to set the value of the column control_value to 1 similar to the example below.
update configuration set control_value = 1 where control_id like '%DonGriffinHome%'
      • After 1 minute or so you can query the Novus Printer table. All local printers should now be listed in the Printer table. In addition, the value of the column control_value in the configuration table will now be set to 0.


Return to Novus