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.

Re: Duplexing printer? by Jonathan

Jonathan
Thu Jul 01 15:41:44 CDT 2004


"Neal" <Neal@discussions.microsoft.com> wrote in message
news:DCB3FE76-4B4F-444D-A9BD-4681E34720DE@microsoft.com...
> 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?

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.713 / Virus Database: 469 - Release Date: 30/06/2004


Re: Duplexing printer? by Neal

Neal
Thu Jul 01 18:13:01 CDT 2004

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.

"Jonathan West" wrote:

>
> "Neal" <Neal@discussions.microsoft.com> wrote in message
> news:DCB3FE76-4B4F-444D-A9BD-4681E34720DE@microsoft.com...
> > 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?
>
> --
> Regards
> Jonathan West - Word MVP
> www.intelligentdocuments.co.uk
> Please reply to the newsgroup
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.713 / Virus Database: 469 - Release Date: 30/06/2004
>
>

Re: Duplexing printer? by Neal

Neal
Fri Jul 02 07:30:02 CDT 2004

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)



"Jonathan West" wrote:

>
> "Neal" <Neal@discussions.microsoft.com> wrote in message
> news:DCB3FE76-4B4F-444D-A9BD-4681E34720DE@microsoft.com...
> > 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?
>
> --
> Regards
> Jonathan West - Word MVP
> www.intelligentdocuments.co.uk
> Please reply to the newsgroup
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.713 / Virus Database: 469 - Release Date: 30/06/2004
>
>