If your using VFP8 you can use the new SYS(2040) function.
from VFP helpfile
Example The following example displays how SYS(2040) can be used to suppress the _PAGETOTAL system variable when the report is in Preview Mode.
"Page: " + TRANS(_PAGENO) + ; IIF( SYS(2040) = "1", "", " of " + TRANS(_PAGETOTAL))
vfpmcp /AT/ mbsoftwaresolutions D.OT com wrote:
> I want to show something in the report when a user is PREVIEWING it, but I don't want it to image when the report goes to the printer. Is that possible? I usually always do the REPORT FORM MyReport PREVIEW TO PRINTER NOCONSOLE PROMPT, so keep in mind th > at the user can print from the Preview window. > > For example, I want to highlight a detail's entire row (using a filled rectangle around the detail items and its PrintWhen logic to conditionally image the filled rectangle to give the "highlight" look) when a certain scenario exists. In particular, if t > here's a potential error (via flag I set), I want to highlight that row, but only for visual notification to the user, and not when it gets printed. > > Any ideas? > > TIA, > --Michael > > Michael Babcock, MCP > President, MB Software Solutions > http://mbsoftwaresolutions.com > "Work smarter, not harder." > > Purchases from http://foxtoolbox.com help VFP user groups!! Please check this site out before you decide to buy elsewhere...very competitive and beneficial to our community!! > > > [excessive quoting removed by server]
©2003 Gene Vital |