Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 248605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:21:25+00:00 2026-05-11T21:21:25+00:00

I am trying to format (bold or italics) only a portion of a textbox

  • 0

I am trying to format (bold or italics) only a portion of a textbox or Formula object (IFieldObject) in Crystal Reports for Visual Studio 2008.

I know how to make the entire field bold, but I want only a portion.

For example:

…blah blah blah May 12, 2009 blah blah blah…

Is this possible? I’m thinking there must be some sort of markup, but can’t find any reference
to it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:21:25+00:00Added an answer on May 11, 2026 at 9:21 pm

    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’

    There are Gotchas here. The original text is not HTML encoded, and I’m sure my example code does a simple one-line thing in about ten lines. Also, if your field has no colons in it, you’ll force an error. However, it should give you the right idea.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to format a selected text to bold inside a textbox but
I'm trying to format ToolStripDropDownButton items btn1.DropDown.ForeColor = Color.Gray; //this works btn1.DropDown.Font.Bold = true;
I am trying to format some html output from my db using php and
I am trying to format a string to display two columns for a high
I'm trying to format a string to give me 2 characters for a number,
I'm trying to format a literal control on a code-behind page: BillerLiteral.Text = <p
I am trying to format my code with textmate indent option . but textmate
I am trying to format some c# output so that a number always has
I'm trying to format a table from XML. Lets say I have this line
I am trying to format a TimeSpan element in the format of [minutes]:[seconds]. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.