Results 1 to 5 of 5
  1. #1
    Grinea is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    2

    Programmatically supplying printer password from Access VBA

    Hi All,



    I've have a database that generates and prints reports to a network printer, and that all works fine and dandy. The issue is the printer requires the user to enter a user code before it accepts the job. As I would like to print multiple reports from a single button it becomes tedious to enter the job code for every report. I've not managed to find anything on Google or forums referencing a way to supply the code to the printer programmatically, and doing print to PDF and then merge to have a single print job is quite unwieldy.

    In short is there a way to supply a password/code as an argument with a print job with VBA?

    Thanks for your time,
    Owen

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    never heard of a printer requiring a password.
    If you are logged in, the printer KNOWS who you are. No need for a password.

  3. #3
    Micron is online now Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    I have. Anything I printed required me to enter a pass code after selecting which jobs from the queue belonged to me - IF my printer options were setup to require one. Can't recall what printer it was that would allow "Secure Print" settings to be set, but it was optional. So if I didn't configure to require a pass code it would print without delay. Maybe check your settings, or if it's an IT policy, you'd have to ask if you can be exempted. When you think of it, the idea of pass words kind of negates the idea of coding around them. If it were that easy, then why have them?

    There is a printer object available in Access, but I've never dealt much with it so I don't know what properties you can get at.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    Grinea is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    2
    Thanks for the replies.

    The printer requires a person's job code as each code has printing limits (total copies, colour, size, that sort of thing) as some of the people at my workplace were printing hundreds of copies of things for no or poor reasons.

    Micron I understand what you mean about the passwords, but I was not intending to have them coded in, but rather prompt an input box to get a user to put in their print code, which would then be supplied to that series of reports. That way it only needs to be entered once. I don't think the user exemption would work as the reports often generate different information based on the user who has called them, so it will not be used just by myself. It is actually a good thought though, I'll check if the IT guys can put an exemption on jobs coming from Access, rather than jobs coming from a specific user. And I had no luck reading the documentation about the printer object unfortunately.

  5. #5
    Micron is online now Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    The printer requires a person's job code
    Not clear to me what that means. My own experience is that passcodes had to be entered at the Xerox printer (or whatever it was) by the user. Kind of like putting in your code to unlock a door. The idea of doing that programmatically just doesn't seem possible.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 02-25-2014, 11:46 AM
  2. HELP! Access 2007 not finding printer
    By tylerg11 in forum Access
    Replies: 5
    Last Post: 01-16-2014, 10:35 AM
  3. Replies: 1
    Last Post: 07-24-2012, 06:10 PM
  4. connect MS Access with fiscal printer
    By denkovski in forum Access
    Replies: 2
    Last Post: 02-13-2012, 11:43 AM
  5. Printing to an intermec printer from access
    By dkalsow in forum Programming
    Replies: 3
    Last Post: 12-16-2009, 06:11 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums