Employing the following code to print a single page report always results in 2 pages being printed: the appropriate page plus a blank page. I'm using Paradox 10, Windows SE and XP Pro, a Brother 5040 and 5140 Laser printer. I can't figure out a work-around. Please help! Thank you.
LHT
method pushButton(var eventInfo Event)
var
q Query
strReportName String
r Report
roi ReportOpenInfo
rpi ReportPrintInfo
tv TableView
endVar
q.readFromFile("Daily Appointments.QBE")
q.executeQBE()
rpi.name = "DAILY PATIENT LIST2.rsl"
rpi.masterTable = "RIV:ANSWER.DB"
r.print(rpi)
endMethod
LHT
method pushButton(var eventInfo Event)
var
q Query
strReportName String
r Report
roi ReportOpenInfo
rpi ReportPrintInfo
tv TableView
endVar
q.readFromFile("Daily Appointments.QBE")
q.executeQBE()
rpi.name = "DAILY PATIENT LIST2.rsl"
rpi.masterTable = "RIV:ANSWER.DB"
r.print(rpi)
endMethod