Huge problem with reports printing in VFP 5.0.
I've done a report file with Report designer. Later I put
REPORT FORM myform PREVIEW WHILE mycondition
in my code. All OK. Preview screen is fine - records
are shown according to WHILE condition. But when I
press Print button (in report submenu) I see ALL records
in printed report. As if command
REPORT FORM myform TO PRINTER ALL
was issued from inside VFP :(( My WHILE condition is
ignored when sending report to printer. Though Preview
screen shows me only WHILE'd records. It's very offensive,
that conditions in REPORT FORM affects only preview screen,
but doesn't affect printer output.
The only solution I've found was to set condition before
REPORT FORM command in code, i.e SET FILTERs or SET KEYs.
In this case such filtering affects both Report preview
and Report print. Any suggestions ?
Sergey Rewa.
reware@cafe.redcom.ru