<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : RC Search Highlight Demo w/ Metrics.Text</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : RC Search Highlight Demo w/ Metrics.Text]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 15:32:37 +0000</pubDate>
  <lastBuildDate>Tue, 13 Dec 2011 23:42:06 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=17718</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[RC Search Highlight Demo w/ Metrics.Text :  Hi jpbroThank you so much.....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=67166&amp;title=rc-search-highlight-demo-w-metrics-text#67166</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5940">JamGodz</a><br /><strong>Subject:</strong> 17718<br /><strong>Posted:</strong> 13 December 2011 at 11:42pm<br /><br />Hi jpbro<br><br>Thank you so much.. it really work!<br><br>but how i implented the filter to display only the hilighted data in the reportcontrol? using the txtFilter_Change event. But also how you add the flatedit in the toolbar without any problem coz i have successfully attached the flatedit control but when im going to click the control will move to somewhere in the form or to its original position in design time, but when i used vb6 intrinsic control this will not happen..<br><br><br>pls help.<br><br>thanks..<br>]]>
   </description>
   <pubDate>Tue, 13 Dec 2011 23:42:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=67166&amp;title=rc-search-highlight-demo-w-metrics-text#67166</guid>
  </item> 
  <item>
   <title><![CDATA[RC Search Highlight Demo w/ Metrics.Text : I haven&amp;#039;t tested this, but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=67133&amp;title=rc-search-highlight-demo-w-metrics-text#67133</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 17718<br /><strong>Posted:</strong> 12 December 2011 at 10:11am<br /><br />I haven't tested this, but it might work (may need some modifications, but it should put you on the right track):<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Private Sub wndList_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)<br>&nbsp;&nbsp;&nbsp; If wndList.InplaceEditHwnd &lt;&gt; 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Row Is wndList.FocusedRow Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Item.index = wndList.FocusedColumn.ItemIndex Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Added code to help avoid a nasty crash when in edit mode when using the Item.Value, using Item.Caption shows the Markup...<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_Text = Item.Value<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SendMessage wndList(Item.index).InplaceEditHwnd, WM_SETTEXT, 0, ByVal l_Text<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Sub<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; End If<br><br>&nbsp;&nbsp;&nbsp; Dim GroupRow As ReportGroupRow<br><br>&nbsp;&nbsp;&nbsp; If Row.GroupRow Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Set GroupRow = Row<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; l_Text = EncodePlainTextForXaml(HTMLClean(GroupRow.GroupCaption))<br>&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; l_Text = EncodePlainTextForXaml(Item.Value)<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; l_Search = EncodePlainTextForXaml(txtFilter.Text)<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; If LenB(l_Search) &lt;&gt; 0 Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; l_LastMatchPos = 1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; l_MatchPos = 1<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Do<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; l_MatchPos = InStr(l_MatchPos, l_Text, l_Search, vbTextCompare)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; If l_MatchPos &gt; 0 Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_FoundMatch = True<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; l_EntitySpacedText = Mid$(l_Text, l_MatchPos, Len(l_Search))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; l_EntitySpacedText = Replace$(l_EntitySpacedText, " ", "&amp;#32;")&nbsp;&nbsp; ' Make sure leading and trailing spaces get highlighted by using the space entity.<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; l_MarkupText = l_MarkupText &amp; Mid$(l_Text, l_LastMatchPos, l_MatchPos - IIf(l_LastMatchPos &gt; l_MatchPos, l_LastMatchPos = l_MatchPos, l_LastMatchPos))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; l_MarkupText = l_MarkupText &amp; "&lt;Span Background='#A0FFFF00' Foreground='Black'&gt;&lt;Bold&gt;" &amp; l_EntitySpacedText &amp; "&lt;/Bold&gt;&lt;/Span&gt;"<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; l_LastMatchPos = l_MatchPos + Len(l_Search)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; l_MatchPos = l_MatchPos + 1<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; l_MarkupText = l_MarkupText &amp; Mid$(l_Text, l_LastMatchPos)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Loop While l_MatchPos &gt; 0<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; l_Text = "&lt;TextBlock TextTrimming='CharacterEllipsis' ToolTip='" &amp; l_Text &amp; "'&gt;" &amp; l_MarkupText &amp; "&lt;/TextBlock&gt;"<br>&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; l_Text = HTMLClean(l_Text)<br>&nbsp;&nbsp;&nbsp; End If<br><br>&nbsp;&nbsp;&nbsp; If GroupRow Is Nothing Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Item.Caption = l_Text<br>&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GroupRow.GroupCaption = l_Text<br>&nbsp;&nbsp;&nbsp; End If<br>End Sub<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Mon, 12 Dec 2011 10:11:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=67133&amp;title=rc-search-highlight-demo-w-metrics-text#67133</guid>
  </item> 
  <item>
   <title><![CDATA[RC Search Highlight Demo w/ Metrics.Text :   Hi jpbro and Xander, below...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=67108&amp;title=rc-search-highlight-demo-w-metrics-text#67108</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5940">JamGodz</a><br /><strong>Subject:</strong> 17718<br /><strong>Posted:</strong> 10 December 2011 at 7:41am<br /><br />Hi jpbro and Xander, below is my modification to cater the grouprow highlight.<br>but it only apply to grouprow coz i only trap to row.grouprow, i need also to filter/highlight the item not only the grouprow.<br><br><br>Pls any suggestion would be greatly appreciated.<br><br>Thanks.<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Private Sub wndList_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)<br>&nbsp;&nbsp;&nbsp; If wndList.InplaceEditHwnd &lt;&gt; 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Row Is wndList.FocusedRow Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Item.index = wndList.FocusedColumn.ItemIndex Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Added code to help avoid a nasty crash when in edit mode when using the Item.Value, using Item.Caption shows the Markup...<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_Text = Item.Value<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SendMessage wndList(Item.index).InplaceEditHwnd, WM_SETTEXT, 0, ByVal l_Text<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Sub<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; If Row.GroupRow Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim GroupRow As ReportGroupRow<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set GroupRow = Row<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'l_Text = EncodePlainTextForXaml(Item.Value)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_Text = EncodePlainTextForXaml(HTMLClean(GroupRow.GroupCaption))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_Search = EncodePlainTextForXaml(txtFilter.Text)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If LenB(l_Search) &lt;&gt; 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_LastMatchPos = 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_MatchPos = 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Do<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_MatchPos = InStr(l_MatchPos, l_Text, l_Search, vbTextCompare)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If l_MatchPos &gt; 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_FoundMatch = True<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_EntitySpacedText = Mid$(l_Text, l_MatchPos, Len(l_Search))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_EntitySpacedText = Replace$(l_EntitySpacedText, " ", "&amp;#32;")&nbsp;&nbsp; ' Make sure leading and trailing spaces get highlighted by using the space entity.<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_MarkupText = l_MarkupText &amp; Mid$(l_Text, l_LastMatchPos, l_MatchPos - IIf(l_LastMatchPos &gt; l_MatchPos, l_LastMatchPos = l_MatchPos, l_LastMatchPos))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_MarkupText = l_MarkupText &amp; "&lt;Span Background='#A0FFFF00' Foreground='Black'&gt;&lt;Bold&gt;" &amp; l_EntitySpacedText &amp; "&lt;/Bold&gt;&lt;/Span&gt;"<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_LastMatchPos = l_MatchPos + Len(l_Search)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_MatchPos = l_MatchPos + 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_MarkupText = l_MarkupText &amp; Mid$(l_Text, l_LastMatchPos)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Loop While l_MatchPos &gt; 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GroupRow.GroupCaption = "&lt;TextBlock TextTrimming='CharacterEllipsis' ToolTip='" &amp; l_Text &amp; "'&gt;" &amp; l_MarkupText &amp; "&lt;/TextBlock&gt;"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GroupRow.GroupCaption = HTMLClean(l_Text)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; End If<br>End Sub<br></pre></td></tr></table><br><br>below are my function to strip HTML tags.<br><table width="99%"><tr><td><pre class="BBcode"><br>Public Function HTMLClean(ByVal strText As String) As String<br>&nbsp;&nbsp;&nbsp; Dim objRegEx As VBScript_RegExp_55.RegExp<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; ' replace &lt;br&gt;'s for a newline<br>&nbsp;&nbsp;&nbsp; strText = Replace$(strText, "&lt;br&gt;", Chr$(10), 1, -1, vbTextCompare)<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; ' replace non-breaking spaces for a space<br>&nbsp;&nbsp;&nbsp; strText = Replace$(strText, "&amp;nbsp;", Chr$(32), 1, -1, vbTextCompare)<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; ' create new regex object<br>&nbsp;&nbsp;&nbsp; Set objRegEx = New VBScript_RegExp_55.RegExp<br>&nbsp;&nbsp;&nbsp; objRegEx.Global = True ' don't just operate on first find.<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; ' remove HTML tags<br>&nbsp;&nbsp;&nbsp; objRegEx.Pattern = "&lt;&#091;^&gt;&#093;*&gt;"<br>&nbsp;&nbsp;&nbsp; strText = objRegEx.Replace(strText, "")<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; ' ditch excessive white space<br>&nbsp;&nbsp;&nbsp; objRegEx.Pattern = "\s+"<br>&nbsp;&nbsp;&nbsp; strText = objRegEx.Replace(strText, " ")<br><br>&nbsp;&nbsp;&nbsp; Set objRegEx = Nothing<br><br>&nbsp;&nbsp;&nbsp; ' named-entities<br>&nbsp;&nbsp;&nbsp; strText = Replace$(strText, "&amp;gt;", "&gt;", 1, -1, vbTextCompare)<br>&nbsp;&nbsp;&nbsp; strText = Replace$(strText, "&amp;lt;", "&lt;", 1, -1, vbTextCompare)<br><br>&nbsp;&nbsp;&nbsp; ' insert your favourite named-entities here.<br>&nbsp;&nbsp;&nbsp; strText = Replace$(strText, "&amp;amp;", "&amp;", 1, -1, vbTextCompare)&nbsp; ' must do last<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; ' return<br>&nbsp;&nbsp;&nbsp; HTMLClean = strText<br>End Function<br><br></pre></td></tr></table><br><br>&#091;&#093;<br>]]>
   </description>
   <pubDate>Sat, 10 Dec 2011 07:41:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=67108&amp;title=rc-search-highlight-demo-w-metrics-text#67108</guid>
  </item> 
  <item>
   <title><![CDATA[RC Search Highlight Demo w/ Metrics.Text : At the top of the BeforeDrawRow...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=67101&amp;title=rc-search-highlight-demo-w-metrics-text#67101</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 17718<br /><strong>Posted:</strong> 09 December 2011 at 1:58pm<br /><br />At the top of the BeforeDrawRow event, you could test like this:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>If Row Is Nothing Then Exit Sub<br>If Row.GroupRow Then Exit Sub<br>If Item Is Nothing Then Exit Sub<br></pre></td></tr></table><br><br>This should prevent any errors (aircode, so hopefully I haven't made a mistake).<br><br>]]>
   </description>
   <pubDate>Fri, 09 Dec 2011 13:58:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=67101&amp;title=rc-search-highlight-demo-w-metrics-text#67101</guid>
  </item> 
  <item>
   <title><![CDATA[RC Search Highlight Demo w/ Metrics.Text : Hi JamGodz,I guess this issue...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=67095&amp;title=rc-search-highlight-demo-w-metrics-text#67095</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 17718<br /><strong>Posted:</strong> 09 December 2011 at 3:31am<br /><br />Hi JamGodz,<br><br>I guess this issue is occuring due to the use of the GroupRow. I didn't test for that as I wasn't using it in my project, but I guess you'll need to add some code for Row.GroupRow.<br><br>If you can upload a sample I will try and help you out, although now that this forum takes a while for posts to display I can't imagine I can help before the weekend plus I am out of the office on Monday &amp; Tuesday!<br>]]>
   </description>
   <pubDate>Fri, 09 Dec 2011 03:31:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=67095&amp;title=rc-search-highlight-demo-w-metrics-text#67095</guid>
  </item> 
  <item>
   <title><![CDATA[RC Search Highlight Demo w/ Metrics.Text :  Hi Xander! thank you for the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=67084&amp;title=rc-search-highlight-demo-w-metrics-text#67084</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5940">JamGodz</a><br /><strong>Subject:</strong> 17718<br /><strong>Posted:</strong> 08 December 2011 at 3:26am<br /><br />Hi Xander! thank you for the reply and specially the code..<br>but i have found an error in <br><br>l_Text = EncodePlainTextForXaml(Item.Value)<br><br>its says "Object Variable or With block variable not set"<br><br>i have a 2 grouprow in my RC. how can avoid this error?<br><br>and it doesnt hightlight the grouprow.<br><br>thanks?<br>]]>
   </description>
   <pubDate>Thu, 08 Dec 2011 03:26:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=67084&amp;title=rc-search-highlight-demo-w-metrics-text#67084</guid>
  </item> 
  <item>
   <title><![CDATA[RC Search Highlight Demo w/ Metrics.Text :   Hi JamGodz,Well as for the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=67048&amp;title=rc-search-highlight-demo-w-metrics-text#67048</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 17718<br /><strong>Posted:</strong> 06 December 2011 at 5:13am<br /><br />Hi JamGodz,<br><br>Well as for the code you can get this from jpbro's first post and change the code accordinly as per my fifth post.<br><br>As for the filter, well it's nothing more than a FlatEdit &amp; PushButton control. I changed the way in which the filter worked by disabling and enabling a timer each time the filter was changed so as that it meant it would only filter after a few seconds of inactivity.<br><br><table width="99%"><tr><td><pre class="BBcode">Private Sub tmrFilter_Timer()<br>&nbsp;&nbsp;&nbsp; tmrFilter.Enabled = False<br>&nbsp;&nbsp;&nbsp; Dim i As Long<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; m_FoundMatch = False<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; For i = 0 To 3<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With rpcGrid(i)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .FilterText = Trim$(txtFilter.Text)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Navigator.MoveFirstVisibleRow<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Populate<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Redraw<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp; Next<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; If LenB(txtFilter.Text) &gt; 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If m_FoundMatch Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 0 To 3<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rpcGrid(i).ExpandAll True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; txtFilter.BackColor = vbWindowBackground<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; txtFilter.BackColor = &amp;H8282FF<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 0 To 3<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rpcGrid(i).CollapseAll<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; txtFilter.BackColor = vbWindowBackground<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; For i = 0 To 3<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With rpcGrid(i)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Navigator.MoveFirstVisibleRow<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp; Next<br>End Sub<br><br>Private Sub txtFilter_Change()<br>&nbsp;&nbsp;&nbsp; tmrFilter.Enabled = False<br>&nbsp;&nbsp;&nbsp; tmrFilter.Enabled = True<br>&nbsp;&nbsp;&nbsp; If Trim$(txtFilter.Text) = vbNullString Then Call tmrFilter_Timer<br>End Sub<br></pre></td></tr></table><br><br>As for the checkbox "Highlight Filtered Text", I added this later on and this can be added in the BeforeDrawRow event, simlpy replace the block of code in post five:<br><br><table width="99%"><tr><td><pre class="BBcode">' Right Align Numeric Values<br>If IsNumeric(l_Text) Then<br>&nbsp;&nbsp;&nbsp; Row.Record.Item(Item.Index).Caption = "&lt;TextBlock TextAlignment='Right' TextTrimming='CharacterEllipsis' ToolTip='" &amp; l_Text &amp; "'&gt;" &amp; l_MarkupText &amp; "&lt;/TextBlock&gt;"<br>Else<br>&nbsp;&nbsp;&nbsp; Row.Record.Item(Item.Index).Caption = "&lt;TextBlock TextTrimming='CharacterEllipsis' ToolTip='" &amp; l_Text &amp; "'&gt;" &amp; l_MarkupText &amp; "&lt;/TextBlock&gt;"<br>End If<br></pre></td></tr></table><br><br>with the following code:<br><br><table width="99%"><tr><td><pre class="BBcode">If CommandBars.FindControl(, ID_TOOLBAR_FILTER_HIGHLIGHT).Checked Then<br>&nbsp;&nbsp;&nbsp; ' Right Align Numeric Values<br>&nbsp;&nbsp;&nbsp; If IsNumeric(l_Text) Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Row.Record.Item(Item.Index).Caption = "&lt;TextBlock TextAlignment='Right' TextTrimming='CharacterEllipsis' ToolTip='" &amp; l_Text &amp; "'&gt;" &amp; l_MarkupText &amp; "&lt;/TextBlock&gt;"<br>&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Row.Record.Item(Item.Index).Caption = "&lt;TextBlock TextTrimming='CharacterEllipsis' ToolTip='" &amp; l_Text &amp; "'&gt;" &amp; l_MarkupText &amp; "&lt;/TextBlock&gt;"<br>&nbsp;&nbsp;&nbsp; End If<br>Else<br>&nbsp;&nbsp;&nbsp; Row.Record.Item(Item.Index).Caption = l_Text<br>End If<br></pre></td></tr></table><br><br>]]>
   </description>
   <pubDate>Tue, 06 Dec 2011 05:13:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=67048&amp;title=rc-search-highlight-demo-w-metrics-text#67048</guid>
  </item> 
  <item>
   <title><![CDATA[RC Search Highlight Demo w/ Metrics.Text : Hi Sir Xander! Good Day!Just want...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=66869&amp;title=rc-search-highlight-demo-w-metrics-text#66869</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5940">JamGodz</a><br /><strong>Subject:</strong> 17718<br /><strong>Posted:</strong> 19 November 2011 at 6:26am<br /><br />Hi Sir Xander! Good Day!<br><br>Just want to know of how you do it, the filter function... can you teach/post some sample code?<br>i saw your screenshot and that's all i need especially those above the reportcontrol... please...<br><br>Thank you.<br>]]>
   </description>
   <pubDate>Sat, 19 Nov 2011 06:26:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=66869&amp;title=rc-search-highlight-demo-w-metrics-text#66869</guid>
  </item> 
  <item>
   <title><![CDATA[RC Search Highlight Demo w/ Metrics.Text :     Hi Aaron,The crash only...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=65579&amp;title=rc-search-highlight-demo-w-metrics-text#65579</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 17718<br /><strong>Posted:</strong> 29 July 2011 at 5:51am<br /><br />Hi Aaron,<br><br>The crash only happened as I had changed the line:<br><table width="99%"><tr><td><pre class="BBcode">&nbsp;&nbsp;&nbsp; SendMessage rpcGrid(Index).InplaceEditHwnd, WM_SETTEXT, 0, ByVal Item.Caption<br></pre></td></tr></table>to <br><table width="99%"><tr><td><pre class="BBcode">&nbsp; &nbsp; SendMessage rpcGrid(Index).InplaceEditHwnd, WM_SETTEXT, 0, ByVal Item.<font color="#FF0000"><b>Value</b></font><br></pre></td></tr></table>However by updating the code to:<br><table width="99%"><tr><td><pre class="BBcode">&nbsp;&nbsp;&nbsp; <font color="#FF0000"><b>l_Text = Item.Value</b></font><br>&nbsp;&nbsp;&nbsp; SendMessage rpcGrid(Index).InplaceEditHwnd, WM_SETTEXT, 0, ByVal <b><font color="#FF0000">l_Text</font></b><br></pre></td></tr></table>Helps fix the crashing issue and displays the text in edit mode correctly, although there is a slight flicker of Markup. <br><br>I have updated my previous post above with this fix.<br>]]>
   </description>
   <pubDate>Fri, 29 Jul 2011 05:51:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=65579&amp;title=rc-search-highlight-demo-w-metrics-text#65579</guid>
  </item> 
  <item>
   <title><![CDATA[RC Search Highlight Demo w/ Metrics.Text : Hi Alexander,  I tried your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=65576&amp;title=rc-search-highlight-demo-w-metrics-text#65576</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17718<br /><strong>Posted:</strong> 29 July 2011 at 5:37am<br /><br />Hi Alexander,<DIV>&nbsp;</DIV><DIV>I tried your code with V15.0.2 and it works OK, at least no crash.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 29 Jul 2011 05:37:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17718&amp;PID=65576&amp;title=rc-search-highlight-demo-w-metrics-text#65576</guid>
  </item> 
 </channel>
</rss>