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!

foxy previewer PDF

Status
Not open for further replies.

aromao22

Technical User
Sep 5, 2018
5
BR
after using <TF> tags to enable use of html tags I can not align field in report

boldregular_qznbjz.png


rel1_iy31rb.png


rel2_bpij32.png


rel3_k2bpjm.png
 
Hi,
usualy we all use English in this forum.
The use of <TF> tags should not interfere with the alignment, please elaborate your question
Koen
 
Hi,

This is unclear what do you want: centre the content of your textbox or do you want to centre to textbox object in your report? The second option I have no problem, the first option does not work for me wether you have a TF tag or not.

Koen
 
I need to center the contents of the text box, but I noticed that when using <TF> I lose the alignment control, Koen Piller do you have any sujestao to do this alignment
 
Hi,
To centerthe content of a textbox, you have to set the Center property on the Format Page of FieldProperties



Naamloos_a4s0dg.png


Rgds.
Koen
 
my friend has already done that bad does not work if I add the tag <TF>
 
Aromao,

There is really no problem to center text into your text box even when you apply the <TF> tag. There must be something else in your report which bothers you.
See this example, the last name is left aligned (default), the first name is center aligned and has the <TF> Tag. The textbox for firstname has the size of almost the full width of the report.

my testreport You must select the field, right click for properties, select Tab Format, activate the radio button Center to get the effect
Koen
Naamloos1_hhby0j.png
\
 
Hi,

I dont know what you would like to happen.
--
If you want to have a field BOLD I would use the font characterics. And you will get Fieldname
If you implent <TF> with '<b>'+fieldname+'</b>' you will not get fieldname bold.

To center: this is to be set via Center properties in Field Properties.
this can be done regardless of the <TF> settings in Comment and or Data.

What is your goal to set <TF> in both the Comment and the Data?

Regards,
Koen

 
 https://files.engineering.com/getfile.aspx?folder=21499596-579c-4225-868e-25469ad4d052&file=report1.zip
bv_joma1p.jpg


Koen use <TF> because I need bold and regular font in the same text box, if I do not apply <TF> the alignment works, once I apply <TF> the alignment does not work anymore
 
Anderson,
I am afraid that will not work with FoxyPreviewer : a combination of Bold and unBold in the same textbox. For that you shall have to need to implent a RTF class. If you would like to print, like in your sample in your VFP Report:
Còdigo da assisnata 71454834
and this all comes from one text box, then RTF is your friend. If the data comes from 2 textboxes we can do it without RTF.
How does your data look like?

Regards,

Koen
 
Aderson,

I was not correct, FP allows one to format in one an the same textbox different formats. However also meanwhile Cesar confirmed one cannot and format and centre, this was not forseen.
I believe Cesar is now working on a solution.

Regards,

Koen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top