Print Page | Close Window

Markup Data in ReportControl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17510
Printed Date: 15 November 2024 at 4:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Markup Data in ReportControl
Posted By: McKloony
Subject: Markup Data in ReportControl
Date Posted: 03 November 2010 at 5:00am
Is it possible to set Markup Data into a row or a cell of the ReportControl?


-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6



Replies:
Posted By: jpbro
Date Posted: 03 November 2010 at 10:09am
Yes, you can set the EnableMarkup property to True, and then set the Caption property of any ReportRecordItem to a markup string. So something like:


Private Sub Form_Load()
   With Me.ReportControl1
      .EnableMarkup = True
     
      .Columns.Add 0, "Test", 100, True
     
      With .Records.Add
         With .AddItem("Something")
            .Caption = "<TextBlock><Bold>" & Left$(.Value, 1) & "</Bold> - " & .Value & "</TextBlock>"
         End With
      End With
     
      .Populate
   End With
End Sub



-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net