Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
*Hmmph*
Message
From
22/07/1999 18:48:35
 
 
To
22/07/1999 12:28:49
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00244770
Message ID:
00245057
Views:
19
Todd,

GenRepoX works by calling the GenRepoX driver as follows:

do genrepox with "report form myreport.frx"

... where myreport.frx is the FoxPro report that has been created using the FoxPro report editor.

You can put GenRepox directives in the comment snippet of a field in the FRX. So, getting back to the example I mentioned in my previous message, I could put the following directives in the snippet of the "profit" field:

*:IF_COLOR PROFIT > 0.00 AND PROFIT <= 300.00 COLOR RGB(0,0,255,0,255,0) Font "Arial",8 STYLE "B"
*:IF_COLOR PROFIT > 300.00 COLOR RGB(0,255,0,255,255,255) Font "Arial",8 STYLE "B"
*:IF_COLOR PROFIT <= 0.00 COLOR RGB(255,0,0,255,255,255) Font "Arial",8 STYLE "BI"


"PROFIT" is the expression of the field in the FRX.

This example actually comes from a report the first runs a SQL statement:

SELECT ALL;
CARS.MAKE,;
CARS.MODEL,;
CARS.MILEAGE,;
CARS.SALEPR - CARS.PURCHPR AS PROFIT
FROM "CARS" CARS;
INTO CURSOR GRX1;
WHERE (Cars.Saledt<>CTOD("");
AND Cars.Make+Cars.Model<>"FORD");
ORDER BY 1, 4

... after this SQL is run, and the cursor GRX1 is populated, then the GenRepoX program can be run as stated above.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform