Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Field font size
Message
De
14/04/2003 02:15:12
 
 
À
14/04/2003 00:10:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00777070
Message ID:
00777089
Vues:
10
Valter, reports are stored in FRX files which are just DBF files. You can open an FRX file in the same way. You then need to locate the report object for which you want to change font size and change the FONTSIZE field for that record.

The best way to do this is open the FRX file from the IDE and examine it to understand how it looks. Find the field(s) that you want to manipulate - check the EXPR field of the FRX file.

If the report is included in your project you will need to copy it out at runtime to a temp file and change the temp copy. The copy in your project will be read only. eg In pseudo code:
*  Make a copy of my report in a temp location
USE MyReport.frx
COPY TO C:\TEMP\TempReport.frx

*  Change the font size
USE C:\TEMP\TempReport.frx
LOCATE FOR EXPR = MyField
REPLACE FONTSIZE WITH 10
USE

*  Use the temp report
REPORT FORM C:\TEMP\TempReport.frx PREVIEW


*  Optionally delete the temp report
DELETE FILE C:\TEMP\TempReport.*
>I need to change the font size of report field at runtime before printing or viewing. Is it possible?
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform