hi,
Currently i using the visual basic 6 and crystal report XI release 2 to develop one very small program. so i want to print the report direct to printer.
then my question is may i know is it possible to disable the page range in printer setup dialog box at run time?
here is my coding....
Dim crxApp As CRAXDRT.Application
Dim crxRpt As CRAXDRT.Report
Set crxApp = New CRAXDRT.Application
Set crxRpt = crxApp.OpenReport("C:\MyReport.rpt")
If optScreen.value=True Then
CRViewer.ReportSource = crxRpt
CRViewer.ViewReport
Elseif optprinter.value=True Then
crxRpt.PrintOut True
Endif
thanks a lot
Currently i using the visual basic 6 and crystal report XI release 2 to develop one very small program. so i want to print the report direct to printer.
then my question is may i know is it possible to disable the page range in printer setup dialog box at run time?
here is my coding....
Dim crxApp As CRAXDRT.Application
Dim crxRpt As CRAXDRT.Report
Set crxApp = New CRAXDRT.Application
Set crxRpt = crxApp.OpenReport("C:\MyReport.rpt")
If optScreen.value=True Then
CRViewer.ReportSource = crxRpt
CRViewer.ViewReport
Elseif optprinter.value=True Then
crxRpt.PrintOut True
Endif
thanks a lot