Re: Change Default Printer Problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks firstly. Now I find the problem. Once we print a job to specified
printer which need "time" to receive. (although OS should u ok. Printer 1
doesn't receive the data and OS swap the default printer to printer 2. Then
all jobs "go" to printer 2. For this case, I program "Sleep" process after
printing job 1. e.g. sleep 20 seconds. Then swap printer 2 and print. But it
completely depends on how long need to receive data. 20 seconds is a sample
only.

"Karl E. Peterson" <karl@xxxxxxxx> ¼¶¼g©ó¶l¥ó·s»D:e%23voduEQFHA.3076@xxxxxxxxxxxxxxxxxxxxxxx
> Tommy wrote:
>> Thanks. I tried your code but still get trouble. My program prints
>> out 2
>> papers with different orientation in 2 printers respectively.
>> Once I click "Print" button. It will set the default printer for
>> printing
>> landscape and then it change the default printer for printing
>> Portrait. I
>> find that all documents "go" to the second printer. It's my scenario.
>
> Hmmm, I don't do anywhere enough actual printing to recognize the problem
> from that
> description alone. Maybe if you could vastly simplify the code to just
> minimally
> replicate the problem, and post that, someone here will see what's at
> issue.
>
> Sorry... Karl
> --
> Working Without a .NET?
> http://classicvb.org/petition
>
>


.


Quantcast