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!

Disable "Pages" in Printer Setup Dialog box

Status
Not open for further replies.

david81

Programmer
Jun 27, 2007
1
MY
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top