Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

how to show the printer Setup button in CR9?

any one knows how to show the Printer Setup button for Crystal Report Viewer 9 :confused:
[90 byte] By [avrail] at [2007-11-11 8:16:30]
# 1 Re: how to show the printer Setup button in CR9?
Private Sub ReportViewer_PrintButtonClicked(UseDefault As Boolean)

Dim objReport As CRAXDRT.Report

Set objReport = ReportViewer.ReportSource

objReport.PrinterSetup Me.hWnd

End Sub
avrail at 2007-11-11 17:25:43 >
# 2 Re: how to show the printer Setup button in CR9?
'If the cancel button is set to True then the report will not print

Dim MBoolean1 as Boolean
UseDefault = False

MBoolean1 = objReport.PrinterSetupEx(hWnd)
If MBoolean1 = False Then CRViewer1.PrintReport
jggtz at 2007-11-11 17:26:43 >
# 3 Re: how to show the printer Setup button in CR9?
Tried this code but getting Runtime Error 438. Anymore ideas?
Unknown at 2007-11-11 17:27:42 >