PRINTER_LIST function on Windows 10

Discussion about printing issues and techniques.

Moderators: Susan Smith, admin, Gabriel

Post Reply
PJKLUG
Posts: 31
Joined: Tue Jun 09, 2009 9:29 am

PRINTER_LIST function on Windows 10

Post 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
bluesfannoz
Posts: 292
Joined: Fri Jun 19, 2009 9:01 am
Location: Lawrence, Kansas
Contact:

Re: PRINTER_LIST function on Windows 10

Post 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
Steve Koger
Computer Specialist
SEKESC-MACS Division
PJKLUG
Posts: 31
Joined: Tue Jun 09, 2009 9:29 am

Re: PRINTER_LIST function on Windows 10

Post 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
PJKLUG
Posts: 31
Joined: Tue Jun 09, 2009 9:29 am

Re: PRINTER_LIST function on Windows 10

Post 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$
Susan Smith
Posts: 717
Joined: Sun Aug 10, 2008 4:24 am
Location: Southern California

Re: PRINTER_LIST function on Windows 10

Post by Susan Smith »

Pete,

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

-- Susan
PJKLUG
Posts: 31
Joined: Tue Jun 09, 2009 9:29 am

Re: PRINTER_LIST function on Windows 10

Post 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?
Susan Smith
Posts: 717
Joined: Sun Aug 10, 2008 4:24 am
Location: Southern California

Re: PRINTER_LIST function on Windows 10

Post 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
Gabriel
Posts: 412
Joined: Sun Aug 10, 2008 7:37 am
Location: Arlington, TX
Contact:

Re: PRINTER_LIST function on Windows 10

Post 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.
PJKLUG
Posts: 31
Joined: Tue Jun 09, 2009 9:29 am

Re: PRINTER_LIST function on Windows 10

Post 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.
John
Posts: 555
Joined: Sun Apr 26, 2009 8:27 am

Re: PRINTER_LIST function on Windows 10

Post 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.
John Bowman
PJKLUG
Posts: 31
Joined: Tue Jun 09, 2009 9:29 am

Re: PRINTER_LIST function on Windows 10

Post 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
Post Reply