CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2002
    Posts
    65

    Data Report Problem

    Hi, im using vb data report.

    I would like to ask.. how to do some validation?
    like i would like to bold the number if the number is positive value, else change the color to red


    anyone can help me on this?
    Urgent
    Thanks~
    hao_han

  2. #2
    Join Date
    Nov 2002
    Location
    Oakville, Ontario
    Posts
    48
    Hi there;

    Check out this code:

    rptEventGuideTest.Sections.Item("Section4").Controls.Item("lblContractNumber").Font.Bold = True


    Each report object has a collection of "Sections" and within each section, you can reference rptLabel or rptTextBox objects ("lblContractNumber is rptLabel object) and set the font property to bold as demonstrated above. I just tested it and it worked. Cheers,

    DA

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured