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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CR8.5 VB 6 Works: 'If you leav

Status
Not open for further replies.

BradB

MIS
Jun 21, 2001
237
US
CR8.5
VB 6

Works:
'If you leave the crviewer1_PrintButtonClicked BLANK, it prints to the default printer and works just fine.

Private Sub CRViewer1_PrintButtonClicked(UseDefault As Boolean)
'Blank
End Sub

Does NOT Work:
The following brings up the Print Dialog box. When you select Ok to print, it doesn't do anything.

Private Sub CRViewer1_PrintButtonClicked(UseDefault As Boolean)
UseDefault = False
Report.PrintOut True
End Sub

The Printout method is set to True so it should bring up the 'Print' dialog box. The 'Print' dialog box does appear, but when you press OK to print, nothing happens. As it is, having the Printout method to True, it should function exactly as if the "CRViewer1_PrintButtonClicked" has nothing in it, but it doesn't.

Help!
 
if you want the screen to come up to choose a printer then

put Report.PrinterSetup <formname>.hWnd on the line before Report.PrintOut True

otherwise leave the
Private Sub CRViewer1_PrintButtonClicked(UseDefault As Boolean)

sub blank.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top