main logo
Subject: RE: VFP Report question
Author: vfpmcp (AT) mbsoftwaresolutions .D.OT com
Posted: 2003/09/30 13:22:00
 
View Entire Thread
New Search


To better illustrate what I'm trying to do, look at this PDF (password is PASSWORD):

http://mbsoftwaresolutions.com/downloads/estimate/Detail1.pdf

I want to image the potential line error (set via flag in my logic) in RED to the screen preview, but print BLACK when going to the printer. For those who aren't aware of the trick, I've simply copied the detail line and overlayed the original, using the PrintWhen logic to conditionally determine which one is imaging on the report.

Here's the current code in the Red object's PrintWhen:
lShowErrors AND lPossibleError

Now if knowing it was going to Printer, I could turn the lShowErrors flag to .f. and achieve what I want, but again the crux of the problem for me comes when the user hits the Printer button from the Preview toolbar.

The quick fix is to not let the report be printed from the Preview, but I don't like that option...I like to preview first, then print from that same preview screen.


--Michael

------------------------------------------------
On Tue, 30 Sep 2003 12:42:51 -0500, vfpmcp /AT/ mbsoftwaresolutions DOT 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 that 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 there'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!!



 
©2003 vfpmcp (at) mbsoftwaresolutions .DO.T com
<-- Prior Message New Search Next Message -->