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

Formatting string properties

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi All

Does anybody know how to deal with the following problem:
I need to create a report, such that in one place it has a long text with a few variables(data from database) inside. Something like :

Dear ..., we want to order ... for $...

The text is pretty long, and it needs to be well-formatted. The only way i know how to do that is to put calculated field with parameter like:
"Dear" + [data.name]+" we want to order " + ..........

But the problem is more complicated. Some parts of this paragraph should be in bold, some in italic, some in larger font, etc. For example, the item that we want to order should be in bold. At the same time it should be exactly aligned to the prior text. :-/

Is there any way to set font properties inside calculated field ? Or maybe there's another way to do that?

I will appreciate any help,
Thank you
 
Oh, ok, I figured it out. It's really simple - just create a text area and put data fields there... Everything is perfectly aligned without any calculation fields.

Sorry, but that were my very first paradox steps :)
 
v_v_v,

No problems. Paradox is a rich database environment, the trick is to become familiar with the way it "thinks" (or rather, to become familiar with the mindset of the people that wrote it).

One nice thing about embedding field objects in text objects, as you have, is that text objects also have additional properties to control extraneous whitespace, such as Field Squeeze, Line Squeeze, and even Window/Orphan Control.

This technique is also invaluable for creating addressing blocks (for form letters) as well as address labels. However, unlike the design you've got right now (free form text inside the text object), you need to use hard returns to separate the various lines (and sometimes, optional) sections in an address block (e.g. StreetAddress2) and fix the width of the field objects for fully accurate alignment.

In any event, welcome to Paradox and welcome to tek-tips.

-- Lance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top