<?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 : Report markup problem!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Report markup problem!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 07:22:03 +0000</pubDate>
  <lastBuildDate>Sat, 28 Jun 2008 19:58:04 +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=10473</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[Report markup problem! : Can you please change this in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10473&amp;PID=37565&amp;title=report-markup-problem#37565</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 10473<br /><strong>Posted:</strong> 28 June 2008 at 7:58pm<br /><br />Can you please change this in v12.0.2?<DIV>&nbsp;</DIV><DIV>All other controls have simple SetMarkupText-functions. Report records cannot be "marked" <EM>before</EM> the record has been added. This is painful!</DIV><DIV>&nbsp;</DIV><DIV>Perhaps CXTPReportRecordItem should be able to use its own markup context-pointer (default to NULL)!</DIV><DIV><FONT size=2><BR>new CXTPReportRecordItem("&lt;TextBlock&gt;...&lt;/TextBlock&gt;", m_wndReport.GetRecords().GetMarkupContext());</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Then in CXTPReportRecordItem::SetCaption...</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>if (m_pMarkupContext)<BR>&nbsp;&nbsp;&nbsp; m_pMarkupUIElement = XTPMarkupParseText(m_pMarkupContext, strCaption);<BR>else </FONT><FONT size=2>if (m_pRecord &amp;&amp; m_pRecord-&gt;m_pRecords &amp;&amp; m_pRecord-&gt;m_pRecords-&gt;GetMarkupContext())<BR>{</FONT></DIV><DIV><FONT size=2>m_pMarkupUIElement = XTPMarkupParseText(m_pRecord-&gt;m_pRecords-&gt;GetMarkupContext(), strCaption);</FONT></DIV><DIV><FONT size=2>}</FONT></DIV><DIV><FONT size=2>&nbsp;</DIV></FONT>]]>
   </description>
   <pubDate>Sat, 28 Jun 2008 19:58:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10473&amp;PID=37565&amp;title=report-markup-problem#37565</guid>
  </item> 
  <item>
   <title><![CDATA[Report markup problem! : Possible solution would be to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10473&amp;PID=34620&amp;title=report-markup-problem#34620</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 10473<br /><strong>Posted:</strong> 03 May 2008 at 9:52pm<br /><br />Possible solution would be to call an update-function somewhere below XTPReportRecord.cpp(118):<DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>pItem-&gt;OnItemAdded(); ... then I could call SetCaption in this function. Perhaps you can think of a better design. *back to coding*</DIV>]]>
   </description>
   <pubDate>Sat, 03 May 2008 21:52:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10473&amp;PID=34620&amp;title=report-markup-problem#34620</guid>
  </item> 
  <item>
   <title><![CDATA[Report markup problem! : AddRecord(new CMyRecord(...)); Inside...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10473&amp;PID=34603&amp;title=report-markup-problem#34603</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 10473<br /><strong>Posted:</strong> 03 May 2008 at 10:45am<br /><br />AddRecord(new CMyRecord(...));<DIV>Inside CMyRecord I format some markup text in the added items, but it will never&nbsp;be parsed due to this:</DIV><DIV>&nbsp;</DIV><DIV>void CXTPReportRecordItem::SetCaption(LPCTSTR strCaption)<BR>{<BR>&nbsp;&nbsp;&nbsp; m_strCaption = strCaption;</DIV><DIV>&nbsp;&nbsp;&nbsp; XTPMarkupReleaseElement(m_pMarkupUIElement);</DIV><DIV>&nbsp;&nbsp;&nbsp; if (m_pRecord &amp;&amp; <strong>m_pRecord-&gt;m_pRecords</strong> &amp;&amp; m_pRecord-&gt;m_pRecords-&gt;GetMarkupContext())<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pMarkupUIElement = XTPMarkupParseText(m_pRecord-&gt;m_pRecords-&gt;GetMarkupContext(), strCaption);<BR>&nbsp;&nbsp;&nbsp; }<BR>}</DIV><DIV>&nbsp;</DIV><DIV>m_pRecord-&gt;m_pRecords will always be NULL! So the question is; do I have to explicitly call SetCaption on all my items <EM>after</EM> I have added the record? That seems odd!</DIV><DIV>&nbsp;</DIV><DIV>This works (also seen in Report Sample):</DIV><DIV>GetRecords()-&gt;GetAt(0)-&gt;GetItem(0)-&gt;SetCaption("&lt;TextBlock&gt;&lt;Run Foreground='Red'&gt;Test&lt;/Run&gt;&lt;/TextBlock&gt;");</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 03 May 2008 10:45:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10473&amp;PID=34603&amp;title=report-markup-problem#34603</guid>
  </item> 
 </channel>
</rss>