Comments (4)
@SRodinou How you make it work on windows? can you share your code?
from ipp-printer.
What's your issue here ?
I've managed to make it work so I may help
from ipp-printer.
Someone have make it work on Windows? The printer is showing, the job it's being created but the event on nodejs is not firing therefore no .ps file is created.
from ipp-printer.
I wrote Powershell script for printer installation:
$PrinterName = "FillYoutPrinterName"
Write-Output "Step 1"
Try {
# Step 1 - Enable InternetPrinting feature
$Feature = Get-WindowsOptionalFeature -Online -FeatureName "Printing-Foundation-InternetPrinting-Client"
if ($Feature.State -ne "Enabled") {
Enable-WindowsOptionalFeature -Online -FeatureName "Printing-Foundation-Features" -NoRestart | Out-Null
Enable-WindowsOptionalFeature -Online -FeatureName "Printing-Foundation-InternetPrinting-Client" -NoRestart | Out-Null
Write-Output "Printing-Foundation-InternetPrinting-Client feature enabled."
} else {
Write-Output "Printing-Foundation-InternetPrinting-Client feature already enabled."
}
} Catch {
Write-Output "<!--- An error occurred @ Step 1 ---!>"
Write-Output $_.ScriptStackTrace
}
Write-Output ""
Write-Output "Step 2"
Try {
# Step 2 - Check if printer exists
$Printer = Get-Printer -Name $PrinterName -erroraction 'silentlycontinue'
If ($Printer) {
Write-Output "Printer already installed."
} Else {
Write-Output "Install printer..."
# Step 2.1 - Find printer driver name
$PrinterDriver = Get-PrinterDriver -Name "HP *" # You can change this to any other printer driver
if ((-Not $PrinterDriver) -or ($PrinterDriver.length -eq 0)) {
Write-Output "Can't find printer driver."
exit 1
}
$PrinterDriverName = $PrinterDriver[0].Name;
Write-Output "Driver name = $PrinterDriverName"
# Step 2.2 - Install printer
Write-Output "Install printer..."
Add-Printer -Name $PrinterName -DriverName $PrinterDriverName -PortName "http://$($env:COMPUTERNAME):3007/printers/$PrinterName"
Write-Output "Printer ($PrinterName) installed successfully."
}
} Catch {
Write-Output "<!--- An error occurred @ Step 2 ---!>"
Write-Output $_.ScriptStackTrace
}
!! Don't forget to install GhostScript
Hope it's help for you :) @figox @tech-srinath
from ipp-printer.
Related Issues (20)
- Document Remains in Queue After Printing HOT 2
- Very slow on low cpu computers
- Does not work with ipp 2.0
- ipp-server does not respont on a job HOT 2
- you're a great guy!
- iOS Client repeating POST request after server return HTTP 401 Unauthorized error
- iOS Client not sending number of copies
- Need someone to continue the project HOT 1
- job.attributes() missing attributes from ATTR_GROUP_JOB_TMPL HOT 2
- color setting and copies attribute
- Is there any way to destroy existing printer after its creation?
- No debug, and struggling to get this working HOT 2
- Set ipp-printer to get pdf format instead of postscript HOT 3
- Can I configure global IP address where printer is installed in windows? HOT 1
- Printer Server responds very late (>1 minute) on some Windows 7 machines. HOT 1
- [SUGGESTION] Docker image
- When starting printer in 2 Pc's connected in same network, It will throw an error.
- Unable to receive printjob from StoreHub POS
- Donot show in windows printer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipp-printer.