출처: http://stackoverflow.com/questions/987672/format-make-bold-or-italics-a-portion-of-a-textbox-or-formula-object-in-crysta


You can do this by inserting HTML markup in the field (using a formula) and then displaying the new formula as a HTML field.

e.g. Here's a basic Syntax formula that takes a field and adds the bold tag around the text before the colon.

dim sTmp as string 
dim sLeft as string 
dim sRight as string 
dim sAll as string 

sTmp = {yourtable.yourfield}

sLeft = (split(sTmp,":"))(1)
sRight = (split(sTmp,":"))(2)

sAll = "<b>"+sLeft+":</b>"+sRight
formula = sAll

If you place this new formula into the report and then ...

  • Right Click the field and choose "Format Field"
  • Change Text Interpretation to HTML Text
  • Click 'OK'

<p style="font-family:arial;text-align:center;font-weight:bold;color:black;font-size:10px;">A paragraph.</p>


Posted by 노을지기
이전버튼 1 2 3 4 5 이전버튼

티스토리 툴바