I would treat as a user training issue and that if they wanted it to print out the 'best' quality then use the Print button. If they want to preview then they can see the other version with the red fonts etc then use the Preview button.
-----Original Message----- From: vfpmcp at mbsoftwaresolutions D.O.T com [mailto:vfpmcp@mbsoftwaresolutions.com]
Sent: Tuesday, September 30, 2003 2:05 PM To: profox at leafe D.O.T com Subject: RE: VFP Report question
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@mbsoftwaresolutions.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 Crooks, David L. |