Results 1 to 2 of 2
  1. #1
    Join Date
    May 2002
    Posts
    28

    Unanswered: code to make bold in report

    Hi,.
    i want to make model and put in report format where city"DC" became bold color in report for printing.

    thanks

  2. #2
    Join Date
    May 2003
    Location
    Dallas
    Posts
    817
    Provided Answers: 5
    on the onformat event of the section of the report that has the field place this line

    if fieldname = "DC" then
    fieldname.FontBold = True
    else
    fieldname.fontbold = false
    end if

    this should work you could also use

    if fieldname = "DC" then
    fieldname.fontweight = x (where x is the weight you want)
    else
    fieldname.fontweight = y (the default weight)
    end if

    here are the weights to use
    Thin 100
    Extra Light 200
    Light 300
    Normal 400
    Medium 500
    Semi-bold 600
    Bold 700
    Extra Bold 800
    Heavy 900

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •