On a custom menu form, I have a button for reports. When the button
is pressed, a report "switch menu" appears. The user chooses a report
and it prints. The problem is that the report ("codes") always prints
twice. The Paradox dialog box printing and preparing to print goes
through its motions twice.
What am I doing or not doing properly?
Here is the code:
case "Premiums Master" :
case "Shipping Master" :
case "Contacts..." :
case "Summary" :
case "Codes" :
rpiHandle.name = "codes.rsl"
if NOT rHandle.print(rpiHandle) then
msgStop("Error printing " + rpiHandle.name,
"Please make sure the report exists and try again.")