Page 1 of 1

PRINTER_LIST function on Windows 10

Posted: Mon Feb 11, 2019 1:47 pm
by PJKLUG
Suddenly on Thursday or Friday last week the PRINTER_LIST function on Windows 10 no longer returns workstation printer names in all versions of WB/BR. Still works on Windows 7.
Help?
Pete - CTL

Re: PRINTER_LIST function on Windows 10

Posted: Mon Feb 11, 2019 1:52 pm
by bluesfannoz
That usually means there is a printer with something that BR doesn't like whether its a printer name or a driver of some kind it does not like.

The other possibility is that there are printers that the user does not have permission to administrate if they have locked things down.

Hope that helps

Re: PRINTER_LIST function on Windows 10

Posted: Mon Feb 11, 2019 2:49 pm
by PJKLUG
We only have two Windows 10 computers on WB/BR and they both started failing to show printers on Friday. No errors, just nothing showing up in the function list. Nothing was changed or added printer wise which is why I'm looking at Windows updates. I have a call into our IT support to see what updated recently. Does anyone else use PRINTER_LIST on Windows 10 and does it work?
Thanks for your help.
Pete

Re: PRINTER_LIST function on Windows 10

Posted: Mon Feb 11, 2019 2:57 pm
by PJKLUG
Only three lines of code to test this....

DIM P_LIST$(1)*90
LET P_X=PRINTER_LIST(P_LIST$)
PRINT MAT P_LIST$

Re: PRINTER_LIST function on Windows 10

Posted: Mon Feb 11, 2019 4:08 pm
by Susan Smith
Pete,

I just tested it on my Win7 and Win10 machines and it works on both.

-- Susan

Re: PRINTER_LIST function on Windows 10

Posted: Mon Feb 11, 2019 4:52 pm
by PJKLUG
Thanks. I logged out and logged back in as an Administrator and it worked again.
Logged out and logged back in as the user and it failed.
Any idea to what or where the user needs rights to in order to access the system file that holds the workstation printer info?

Re: PRINTER_LIST function on Windows 10

Posted: Mon Feb 11, 2019 5:01 pm
by Susan Smith
Pete,

This might be elementary, but do the printers show up in Windows at all when you are logged in at that same user? (I.e. Devices/Printers) Can the user print to them through Windows?

-- Susan

Re: PRINTER_LIST function on Windows 10

Posted: Mon Feb 11, 2019 5:04 pm
by Gabriel
One of my clients called recently describing this same problem.. They were an end user so their description was that the printers were no longer working, but after investigating, they found out they couldn't print to those printers through windows either anymore.

At that point they ended the conversation and had their network guy figure out how to get the printers printing through Microsoft Word again, and once he had that working, I'm assuming their BR software just started working again. They never called back so i'm assuming they got it figured out.

Re: PRINTER_LIST function on Windows 10

Posted: Mon Feb 11, 2019 5:10 pm
by PJKLUG
The printers work in any other application.
I use PRINTER_LIST to include only certain printers for the user to select in the BR/WB applications.

Re: PRINTER_LIST function on Windows 10

Posted: Tue Feb 12, 2019 12:33 pm
by John
Pete,
Have you tried increasing the dim p_list$(1)*90 size to something larger? With USB ports and network addresses they can get pretty long pretty quickly. If you're using On SoFlow Ignore than that is probably the issue. On my system this program returns an empty array:

Code: Select all

on soflow ignore 
dim p_list$(1)*90
p_x=printer_list(p_list$)
pr mat p_list$
Without the SoFlow Ignore line I get an error 4.

On SoFlow Ignore is evil.

Re: PRINTER_LIST function on Windows 10

Posted: Tue Feb 12, 2019 1:13 pm
by PJKLUG
Increased the DIM statement solved the problem.
Microsoft Office added the OneNote Printer at 138 characters only on the Windows 10 boxes. Thank you Microsoft.

OneNote @Microsoft.Office.OneNote_16001.11231.20118.0_x64__8wekyb3d8bbwe_microsoft.onenoteim_S-1-5-21-1638338925-1907253268-310601177-1205

Problem solved. Thanks for all the help.
Pete