Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of pages printing
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00418243
Message ID:
00418348
Views:
32
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform