Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use label as table
Message
De
02/12/1997 17:07:11
Murray Mcintosh
Mammography Reporting System, Inc.
Seattle, Washington, États-Unis
 
 
À
26/11/1997 07:31:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00062183
Message ID:
00063414
Vues:
62
>>>Hi everybody!
>>>
>>>I tried to programatically change the outlook of a label. (VFP5)
>>>The task is to change the width and height of a label, and position of included objects "on the fly".
>>>I opened the label as a table and found the record(s) which hold the data but I didnot find the exact rule of the value of the fields and the dimensions of a label. (As I saw THAT upper corner y cordinate any object on a label, is started from 4166.667) I read a report file in the dev. guide which tried to explain the meaning of each file in the report file, but the dimensions and object coordinates aren't still clear for me.
>>>Can any one suggest me a source where I can read it, or send me some explanation of the fileds?
>>>
>>>TIA:
>>>
>>>BB
>>
>>There is a subdirectory called "FileSpec" under your Vfp dir that has a number of dbfs containing structure info on Vfp projects, menus, dbc's and reports, one of which is called 50frx.dbf which may help answer some of you questions about the different fields in an frx file. As for what the number in vpos, hpos, height, and width mean, that isn't really explained in 50frx.dbf, however, if you take your upper corner y coordinate of 4166.667 and divide by 10000 you'll have .417 inches.
>>
>>note, to have the FileSpec dir you had to have checked the "File Specifications" checkbox from the "Documentation" options when you installed VFP 5.0.
>>
>>Murray
>
>Hi Murray!
>
>Thanks your anwer,I read that reports, you mention.
>But where does the 10000 divider come?
>And why does the label starts at 0.417 inch?
>
>TIA
>BB

Sorry about the delay in answering this, but I've been out of town. The 10000 comes from a personal observation and is influenced by other factors such as band location and font size. My advice at this point is just to experiment. For example, edit a report and make sure "Show Position" is checked from the "view menu". Select a label and move it's horizontal position using the right or left arrow keys. Notice the "left" in the status bar reflects the changes in position. Save the changes and close "Report Designer" then open the frx file and type "browse for objtype = 5". Locate the label you moved (you can look in the "expr" field to search for the label with the matching caption). Note the contents of the "hpos" field and how it relates to the location you moved it to in "Report Designer". Change the hpos value to 20000 then edit the report and note it's position in "Report Designer". You can also experiment with changing other values such as the contents of the "expr" field, "fontface", "fontsize", or others to manipulate the report.

Murray
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform