Printer.copies Crash VB6
Posted on 2004-08-17
I have a program written in vb6, and at the end, i need it to print out the results. So i compilled, used the package and deployment wizard, installed the program, and it ran fine. So i created a new user account on the computer so that the midnight shift could use it, without getting at any of my files. The program works fine, until my program tried to set the number of copies.
The user i added is also an administrator (because of stuff i have yet to sort out, but i'ts not such a problem). I wrote the program as an administrator. Here is the problem I"m getting, when i'm logged in as the new user, If i run the program, and try to print, it crashes, if i'm using the VB IDE, it crashes the entire IDE. I go back to the account that i wrote the program in, it doent crash and everything works fine. The line it crashes on is:
Printer.Copies = vliPrnCopies
No warnings, no option to debug, nothing.