Click to See Complete Forum and Search --> : printing straight to a single printer without the print dialog box.


Chuck Snyder
09-19-2002, 04:37 PM
We have created a custom app in house to print cashier checks on. However,
since the stock must remain somewhat secure, we only want the program to
print to a couple of printers tied to a couple of buttons. So far we have
not been able to do this. We have to use a print dialog box in order to print
which is somewhat unwieldly for what we are trying to do with this.

We used to be able to do this in VB6 with no problems. Any ideas?

Ian Lowe
09-26-2002, 09:15 PM
Chuck,

> However,
> since the stock must remain somewhat secure, we only want the program to
> print to a couple of printers tied to a couple of buttons. So far we have
> not been able to do this. We have to use a print dialog box in order to
print
> which is somewhat unwieldly for what we are trying to do with this.

Check out the PrintDocument.PrinterSettings.PrinterName property.

Hope this helps,

Ian.