Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing text attributes in report at runtime

Status
Not open for further replies.

CBU64

IS-IT--Management
Apr 30, 2001
19
MX
I've trying to change text attributes in a report at runtime (more specific, text face and height). Perhaps, before I make a call to do report ....

Does VFP 6.0 support somehow this feature?

BTW: I feel that the report designer included with VFP does not fully "match" OOP/OOD philosophy adopted in the environment? Neither does menu designer? Does anyone know if there is a good reason of this lack or is it merely to improve portability?

Thanx
smiletiniest.gif
 
Hi!

If you have limited number of cases of text layout, you can just do it more simple way. Put as many textboxes on the same place as you require different layouts. Than in the "Print When..." condition write expression that will return logical .F. for all these textboxes except the textbox with required layout. You can calculate this dynamically for each report data row base on fields data ;) Of course, for entire report it is better to use variable that holds the layout number or something like that.

Also... Report file is a pure DBF file. You can try to access its records, fund record corresponding to the text box and change text box properties. This have a little problem however - when report is compiled into the EXE, you will require to save report files to disk before editing, and run report from disk from the temporary report files. Let me know if you have problems with saving file from EXE onto disk.


Hope this helps.
Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
CBU64

Following Vlad's comments, You can try to access its records, find record corresponding to the text box and change text box properties, see FAQ184-157.

Chris :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top