Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: Barry Lupton
  Where is Barry Lupton?
 Coventry
 United Kingdom
 Barry Lupton
 Tags
Subject: RE: Alternate fonts in detail line
Thread ID: 310781 Message ID: 310798 # Views: 47 # Ratings: 0
Version: Visual FoxPro 9 Category: Reports and Printers
Date: Friday, June 24, 2011 12:58:55 PM         
   


> Hi
>
> I have a report listing feedback obtained via a questionnaire.
>
> I would like to change the font between each feedback item to visually indicate a change of speaker. Just one change would be sufficient, but I would prefer to have say a bank of 5 repeating fonts.
>
> Is this possible?
>

Hi Barry,

With ReportBehavior 90 in Vfp9, the following works for me:
In a report field's properties dialog, "Dynamics" tab, add conditions, name them somehow, and in each condition add an expression like "myColumn=1", "myColumn=2" and so on (w/o quotes in the dialog), and determine a different Font for each of them.
So that the font would be data-driven, and the content of "myColumn" could be a Scan-and-Replace result.

CREATE CURSOR temp (col1 I, ledger I)
FOR i = 1 TO 10
	INSERT INTO temp (col1) VALUES (i)
ENDFOR
lnLedger = 1
SCAN
	REPLACE ledger WITH m.lnledger IN temp
	lnLedger = IIF(m.lnledger<5, m.lnledger+1, 1)
ENDSCAN
BROWSE




hth
-Stefan

ENTIRE THREAD

Alternate fonts in detail line Posted by Barry Lupton @ 6/24/2011 11:38:45 AM
RE: Alternate fonts in detail line Posted by Stefan Wuebbe @ 6/24/2011 12:58:55 PM
RE: Alternate fonts in detail line Posted by Barry Lupton @ 6/24/2011 1:32:31 PM
RE: Alternate fonts in detail line Posted by Stefan Wuebbe @ 6/25/2011 10:58:49 AM
RE: Alternate fonts in detail line Posted by Barry Lupton @ 6/26/2011 11:04:11 PM
RE: Alternate fonts in detail line Posted by Barry Lupton @ 6/29/2011 1:46:16 PM