Monthly Archives: September 2006

i would like to do something (update a table) when a report is printed from the preview windows.

the old way of setting a variable in the report and checking it afterward does not work with an object-assisted report because sys(2040) is not designed to work with the new behavior of the new reporting mechanism of vfp9.

llprinted = .f.
report form xxx to printer prompt object type 1
if llprinted
   ? "printed"

and in the report set llprinted to .t. if sys(2040)="2".  llprinted is always .f. even when the user prints the report.

after a few message… Continue reading