>I need to count the pages of my report before printing. To do that, first I run the report TO a file and count it with a _pageno. The thing is when I execute the REPORT command the ‘Printing Pages’ window shows displaying how many pages there are. I want this to be invisible to the user, so that if the report is more than 30 pages advise them to preview instead of printing.
>Can I suppress that window for displaying?
Christof Lange had an article to do this an other reporting tips in the Oct 1998 issue of Foxpro Advisor. The best you can do is hide that window, but it will flash momentarily. Put a UDF in either the report's Title band or the page header that calls this procedure:
Procedure HidePrintWind
If WExist('Printing...')
move window "Printing..." to -1000,-1000
Endif
Endproc