main logo
Subject: RE: VFP Report question
Author: "Scott King"
Posted: 2003/09/30 13:10:00
 
View Entire Thread
New Search


Michael -

Take a look at Christof Lange's article in the October 1998 issue of FPA
called "Inside the Visual Foxpro Report Designer." In essence, he
suggests testing for the existence of the "Printing..." window that only
exists when the report is being sent to the printer. The test is NOT
WEXIST("Printing..."). I haven't tried this myself, but it seems like
it should work.

Scott

> -----Original Message-----
> From: profox-bounces /AT/ leafe DO.T com
> [mailto:profox-bounces@leafe.com] On Behalf Of
> vfpmcp /AT/ mbsoftwaresolutions DO.T com
> Sent: Tuesday, September 30, 2003 12:05 PM
> To: profox@leafe.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




 
©2003 Scott King
<-- Prior Message New Search Next Message -->