Duplexing printer?

N

Neal

I hope Jonathan West is reading this, I am trying to use your VBA code you have posted. It runs through all the code with no errors when I step through but when it is finished the duplex code has not changed. I am using a Lexmark T622.

Thanks for any help you can give me.
 
J

Jonathan West

Neal said:
I hope Jonathan West is reading this, I am trying to use your VBA code you
have posted. It runs through all the code with no errors when I step
through but when it is finished the duplex code has not changed. I am using
a Lexmark T622.
Thanks for any help you can give me.

Have you installed a local copy of the printer driver on the PC you are
running this code on?
 
N

Neal

Yes I do have a local copy of the printer with it port going to the IP number of the network printer, I think the problem is on the line before the one that set the boolean that everthing when okay. This line returned a zero. I sent the code to you in an email, I hope this was okay, this is really getting me down.
 
N

Neal

Here is the line that is going bad, it returns a zero code.


'Send the new details to the printer
iRet = SetPrinter(hPrinter, 2, yPInfoMemory(0), 0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top