PxPlus User Forum

Twitter Twitter Twitter

Author Topic: No Windows Printers Available  (Read 1240 times)

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 127
    • View Profile
No Windows Printers Available
« on: September 08, 2020, 01:35:42 PM »
Hello,

when running an inomads application we have a routine that tries to open up *windev* to print to our document storage printer.
winprt.pvc pops up message "No Windows Printers Available"
i'm kind of new to inomads - is this an easy fix...

jeff

Stéphane Devouard

  • Gold Member
  • ****
  • Posts: 95
  • PxPlus guru with skills in PHP, JS, C#, Java
    • View Profile
    • Stéphane's Web Resume
Re: No Windows Printers Available
« Reply #1 on: September 09, 2020, 11:52:03 AM »
Jeff

The usual way of running reports with iNomads is to output them to PDF on the server and then let the system push the final document to the browser.

There is no such thing as opening client-side printers with *windev* or *winprt*, only the server-side configured printers are accessible to iNomads.

Not knowing what your code is doing with *windev* makes it difficult to give you an idea if this is an easy fix, but migrating from Windows Desktop to iNomads and Web Browser often means some changes in your code base

Hope this helps
Stéphane Devouard
Portfolio | Work

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 127
    • View Profile
Re: No Windows Printers Available
« Reply #2 on: September 09, 2020, 03:27:29 PM »
Hi Stéphane ,

Yes that does make sense.

The printer in question is a server side printer. It is just a print queue that we send index info to. So it will open this virtual printer  and print out:

Order Number: 100022
Customer: JONES CONSTRUCTION
Order Date: 09/09/2020

and then we'll go out and create a folder in our Document Management System so that they can store any type of Document in there (electronic or scanned)

the thing is it works at a few other accounts from Inomads....

normally when this happens in our regualr application...all i have to do to fix it is sign in as that user and set the default printer on the network user something like this:

def object  ws,"WScript.Network"
ws'SetDefaultPrinter("ImagePrinter")

but i can't do this in Inomads....my only choice has been to stop the printing to it ....

jeff





Mike King

  • Administrator
  • Diamond Member
  • *****
  • Posts: 3597
  • Mike King
    • View Profile
    • PVX Plus Technologies
Re: No Windows Printers Available
« Reply #3 on: September 09, 2020, 03:38:46 PM »
How were you accessing the printer pre-iNomads -- were you accessing it via a WindX connection with a Windows host?  If so then likely the *WINDEV* you were accessing was defined on the workstation and not on the host.  Given this, without WindX you need to configure the printer on the Windows server.

Of course this assumes the server is a Windows server.  If you were running on a Unix/Linux server using WindX then when you switch to iNomads there is no Windows involved thus no Windows spooler to handle the requests.

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 127
    • View Profile
Re: No Windows Printers Available
« Reply #4 on: September 09, 2020, 03:42:51 PM »
Hello Mike,

From the Desktop Application we were accessing the Server Side printer via rdp (not Windx).

Jeff

Mike King

  • Administrator
  • Diamond Member
  • *****
  • Posts: 3597
  • Mike King
    • View Profile
    • PVX Plus Technologies
Re: No Windows Printers Available
« Reply #5 on: September 09, 2020, 03:54:57 PM »
In theory there should be no problem opening *windev* however if you are running iNomads as a service the service may not have access to the printers.

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 127
    • View Profile
Re: No Windows Printers Available
« Reply #6 on: September 09, 2020, 04:03:45 PM »
thanks Mike.
I will research that with the team here.
jeff

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 127
    • View Profile
Re: No Windows Printers Available
« Reply #7 on: September 11, 2020, 08:28:37 AM »
Hi Mike,

we changed the service to run under a Domain Admin account with network rights and that fixed everything ..
the documents are flowing into our Doc Management system.

thanks again.

jeff

Mike King

  • Administrator
  • Diamond Member
  • *****
  • Posts: 3597
  • Mike King
    • View Profile
    • PVX Plus Technologies
Re: No Windows Printers Available
« Reply #8 on: September 11, 2020, 08:55:51 AM »
Glad to hear you got it resolved.  In Windows, when running as a service, the default accounts have limited access to the host machine components.