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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embedded field problem

Status
Not open for further replies.

ian007

Programmer
Jan 17, 2005
3
HR
In TextObject of my report i embade FormulaField.
TextObject can grow, and aligment of TextObject is set to justified.
On developer machine evrything works fine, but on client side words in TextField are split,looking like this:
"some text.............................my prob
lem"
FormulaField code look like this:
"some text.................."& {Command.SomeField} &""
Im using CR10 and VB 6.0, and data from DB2 true ODBC.
Maybe i miss some DLL on Client side, or is there a way.....?
 
You need to check if {Command.SomeField} will fit. Use Length({Command.SomeField}) and when it would break onto a second line, do you own line-break. E.g.
Code:
If Length({Command.SomeField}) < 15
then 
"some text.................." & {Command.SomeField} & "" 
else
"some text.................." & CHR(13)
& {Command.SomeField} &""
Note that CHR(13) will always force a line-break.

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
This is a wild guess and I might be off-base here, but I wonder if this is a font issue, with different printers being used and therefore different fonts available. You might try changing the font for the formula to Courier or some non-proportional font that would be available to all machines regardless of printer.

-LB
 
Thank you Madawc, nice solution, if i have one or two rows,
work fine, but textfield can grow, and this field is string of 1000 characters.

Thank you Ibass for sugesstion, font is ariel (10)intresting part is diference on developer and client machine.Im missing something here but i dont what.

Im even try to change system fonts from small to large.
Didnt work.
i read some articale, about embaded fields in CRhelp,im not sure, would solv my problem if i put on form Embeddable Crystal Report Designer Control,?
 
Ok,
Problem is definitly in fonts.Im from croatia, naturaly report use CRO fonts ?,?,....,
and break in words allways fallow this fonts. Again,on developer machine everything is ok, on client not.

If i find soulution i will post it.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top