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 dialog ShowPrinter delay

Status
Not open for further replies.

Glasgow

IS-IT--Management
Jul 30, 2001
1,669
0
0
GB
I have code (see below) that uses a common dialog to select a printer. When it reaches the .ShowPrinter statement, the printer dialog fires fine and shows 3-4 available printers. But, when I hit the print button (having made no change to default printer selection - which is a printer connected to my local PC) in the dialog, there is a delay of several seconds before the next line of VB code is reached.

Any ideas??? Thanks in advance.

Set ComDlg = FrmMenu.cdgApp
With ComDlg
.CancelError = True
.PrinterDefault = True
On Error GoTo GmsSelectPrinterErr
.ShowPrinter
On Error GoTo 0
End With
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top