×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Printer Error

Printer Error

Printer Error

(OP)
I was testing this code ..... and every time it gave the same error !!


SET PRINTER ON
S = GETPRINTER()
SET PRINTER TO NAME S
REPORT FORM ... TO PRINTER NOCONSOLE


AND EVERYTIME AN ERROR OCCURED !!!


ERROR --  ERROR ACCESSING PRINTER SPOOLER

Can Someone Help by giving me some source code on how to select a printer (Non-Default)

THanks A Lot Guys

RE: Printer Error

ChrisAgius

SET PRINTER ON
S = GETPRINTER()
SET PRINTER TO NAME (S)
REPORT FORM ... TO PRINTER NOCONSOLE

Chris

RE: Printer Error

Another Error Resulted from your solution .....


ERROR ----  ERROR ACCESSING PRINTER SPOOLER


Can anyone help ?

RE: Printer Error

Another Error

Please post the code you are using.

Chris

RE: Printer Error

SET PRINTER ON
S = GETPRINTER()
SET PRINTER TO NAME (S)
REPORT FORM ... TO PRINTER NOCONSOLE



?/????

Chris

RE: Printer Error

Error

Is REPORT FORM ... TO PRINTER NOCONSOLE  the exact code you are using?

Chris



RE: Printer Error

No ... is the name of the form Eg : Stocks

RE: Printer Error

Try replacing all 4 lines of code with this one line. Please note the repositioning of the noconsole parameter.

report form xxx noconsole to printer prompt

If you still get the spooler error look into your windows printer ports and print drivers.  

David W. Grewe
Dave@internationalbid.net

RE: Printer Error

David's one line code is more elegant than the original three line code supplied. (SET PRINTER ON is not needed)

If you want the user to have a choice of printer selection only, use the three line version.

If you want the user to have a choice of printer selection, copies to print and print range, use the one line version.

Chris

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close