Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer defaulting problem

Status
Not open for further replies.

dedo8816

Programmer
Oct 25, 2006
94
GB
Hi all, im having difficulty with my programs printing.
Basically the program prints a small label from information the user puts into text boxes. Ive been using this now for 5 years and have fiddled with it and asked questions before with no answers to my problem, so hopefully this time will be differnt.
When i print from the program it all works perfect but if i have selected the wrong printer, it will continue to print to that one regardless of which i select. Ive tried using the printerdefault to both true and false but no difference. Is there a solution to this problem?

CommonDialog1.DialogTitle = "Label Printer"
CommonDialog1.CancelError = True
CommonDialog1.PrinterDefault = False

On Error Resume Next

CommonDialog1.ShowPrinter

If Err Then
MsgBox "Print Cancelled"
Exit Sub
End If
Printer.ScaleMode = 6
Printer.FontSize = 8
Printer.CurrentY = Printer.CurrentY + 180

Printer.Copies = CommonDialog1.Copies

frmprnprev1.PrintForm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top