<?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 : Auto Numbering</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Auto Numbering]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 18 May 2026 01:14:40 +0000</pubDate>
  <lastBuildDate>Tue, 06 Mar 2018 04:00:01 +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=23591</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[Auto Numbering : Thank You Oleksandr Lebed.I resolved...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23591&amp;PID=76663&amp;title=auto-numbering#76663</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9217">umair</a><br /><strong>Subject:</strong> 23591<br /><strong>Posted:</strong> 06 March 2018 at 4:00am<br /><br />Thank You Oleksandr Lebed.<br />I resolved the issue as:<br />if (pColumn-&gt;IsAutoNumbering())<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pPaintManager-&gt;DrawRowNumber(pDC, rcItem, pRow);<br />}<br />else<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int nItemTextWidth = pItem-&gt;Draw(&drawArgs);<br />}<br />And also resolved the first issue as:<br /><br />GetPaintManager()-&gt;m_iRecOrRowStart = 1;]]>
   </description>
   <pubDate>Tue, 06 Mar 2018 04:00:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23591&amp;PID=76663&amp;title=auto-numbering#76663</guid>
  </item> 
  <item>
   <title><![CDATA[Auto Numbering : I have tried with GridSample and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23591&amp;PID=76662&amp;title=auto-numbering#76662</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23591<br /><strong>Posted:</strong> 06 March 2018 at 2:40am<br /><br />I have tried with GridSample&nbsp; and it draws AutoNumbering column as expected.<br><br>It is not easy to guess what exactly&nbsp;interferes with printing. I can advice to open PrintPreview in your application and then set breakpoint in method CXTPReportRow::Draw()&nbsp; &nbsp;in line ~417&nbsp;<table width="99%"><tr><td><pre class="BBcode">CXTPReportColumn *pColumn = m_pControl-&gt;GetColumns()-&gt;GetAt(nColumn);</pre></td></tr></table><br>Then in PrintPreview press button Print.&nbsp; First column {#0} on breakpoint should be your AutoNumbering column. Execution should go to line ~530&nbsp; with&nbsp;DrawRowNumber() <table width="99%"><tr><td><pre class="BBcode">pPaintManager-&gt;DrawRowNumber(pDC, rcItem, this);</pre></td></tr></table> so you can see what happens in your application, what exactly condition don't allow to print numbers. If DrawRowNumber called then may be problem in method DrawRowNumber(). May be text color is white on white background. Try to change colors<table width="99%"><tr><td><pre class="BBcode">//CXTPFontDC font(pDC, GetTextFont(), GetXtremeColor(COLOR_HIGHLIGHT));<div>CXTPFontDC font(pDC, GetTextFont(), RGB(255,0,0));</pre></td></tr></table><br></div>]]>
   </description>
   <pubDate>Tue, 06 Mar 2018 02:40:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23591&amp;PID=76662&amp;title=auto-numbering#76662</guid>
  </item> 
  <item>
   <title><![CDATA[Auto Numbering : Its working! Thank You  Oleksandr...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23591&amp;PID=76659&amp;title=auto-numbering#76659</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9217">umair</a><br /><strong>Subject:</strong> 23591<br /><strong>Posted:</strong> 06 March 2018 at 1:32am<br /><br />Its working! Thank You  Oleksandr Lebed <img src="http://forum.codejock.com/smileys/smiley17.gif" border="0" align="middle" /> <br /><br />Two more think i want to ask.<br />1) How to start Auto Numbering from 1 (not from zero)?<br />2)When I Print the report control, it print all data except Auto Numbering column which printing as empty?<br />Please help]]>
   </description>
   <pubDate>Tue, 06 Mar 2018 01:32:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23591&amp;PID=76659&amp;title=auto-numbering#76659</guid>
  </item> 
  <item>
   <title><![CDATA[Auto Numbering : Hello,You need to set CXTPRepo...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23591&amp;PID=76658&amp;title=auto-numbering#76658</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23591<br /><strong>Posted:</strong> 06 March 2018 at 1:00am<br /><br />Hello,<br><br>You need to set CXTPReportPaintManager::m_bRecOrRowNum&nbsp; to FALSE.<br><table width="99%"><tr><td><pre class="BBcode">&nbsp; &nbsp; wndReport.GetPaintManager()-&gt;m_bRecOrRowNum = FALSE;</pre></td></tr></table><br>Note that you should do this every time on change theme (set new PaintManager).<br><br>Regards,<br>&nbsp;Oleksandr Lebed]]>
   </description>
   <pubDate>Tue, 06 Mar 2018 01:00:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23591&amp;PID=76658&amp;title=auto-numbering#76658</guid>
  </item> 
  <item>
   <title><![CDATA[Auto Numbering : Hello,How to set Auto Numbering...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23591&amp;PID=76648&amp;title=auto-numbering#76648</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9217">umair</a><br /><strong>Subject:</strong> 23591<br /><strong>Posted:</strong> 01 March 2018 at 1:41am<br /><br />Hello,<br />How to set Auto Numbering Column to not to sort when sorting other column in Report Control?<br />Please Help.]]>
   </description>
   <pubDate>Thu, 01 Mar 2018 01:41:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23591&amp;PID=76648&amp;title=auto-numbering#76648</guid>
  </item> 
 </channel>
</rss>