<?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 : Does ReportControl allows cell selection ?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Does ReportControl allows cell selection ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 07:09:35 +0000</pubDate>
  <lastBuildDate>Fri, 28 Aug 2009 11:45:05 +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=14750</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[Does ReportControl allows cell selection ? : That&amp;#039;s not a bad idea. It...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=52539&amp;title=does-reportcontrol-allows-cell-selection#52539</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5499">RonSanderson</a><br /><strong>Subject:</strong> 14750<br /><strong>Posted:</strong> 28 August 2009 at 11:45am<br /><br />That's not a bad idea. It adds some context information - the null delimiters - to what would be expected in the clipboard.<DIV>&nbsp;</DIV><DIV>My idea was to also add information to the clipboard to help maintain the context.</DIV><DIV>I would add an extra row before all the selected rows. It contains an identifier for each column.</DIV><DIV>I then add an extra item before each row's data. It uniquely identifies the row.</DIV><DIV>&nbsp;</DIV><DIV>On a paste, I can unambiguously determine where the data goes. It does not matter what the user has selected in the Report Control. The data goes exactly where it needs to go.</DIV><DIV>&nbsp;</DIV><DIV>In both approaches, the user has to paste the right data back in.</DIV><UL><LI>If they cut cells and the clipboard contains ,,,a,,b,,\n, then paste in Excel and make changes, they need to copy all the empty cells back again so the clipboard still contains ,,,x,,y,,\n</LI><LI>If you have row and column headers, these show up as data in Excel, and the user has to make sure to copy those back with any data changes. Then the clipboard has all the information needed to synchronize back to the data in the Report Control. Obviously a custom Paste() routine has to be written since this heading data is not meant to appear in the grid. An advantage here is the user can rearrange the rows and columns, or omit some, since the headers define exactly where the data goes.</LI></UL><P>Anyway, even though I have an approach I like, I was wondering if the original poster had to wrestle with these problems. He seems to be one of the first to try to use a columnar selection format.</P>]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 11:45:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=52539&amp;title=does-reportcontrol-allows-cell-selection#52539</guid>
  </item> 
  <item>
   <title><![CDATA[Does ReportControl allows cell selection ? : You can use smth like ,,,a,,b,,\n...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=52535&amp;title=does-reportcontrol-allows-cell-selection#52535</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14750<br /><strong>Posted:</strong> 28 August 2009 at 11:13am<br /><br />You can use smth like ,,,a,,b,,\n to keep original size and position of a and b cells (I use CSV case - "," as \t in your post)]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 11:13:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=52535&amp;title=does-reportcontrol-allows-cell-selection#52535</guid>
  </item> 
  <item>
   <title><![CDATA[Does ReportControl allows cell selection ? : Yes, the original poster mentioned...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=52530&amp;title=does-reportcontrol-allows-cell-selection#52530</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5499">RonSanderson</a><br /><strong>Subject:</strong> 14750<br /><strong>Posted:</strong> 28 August 2009 at 10:58am<br /><br /><P>Yes, the original poster mentioned Excel as a target, and using the Report Control's Copy and Paste gives you a compatible format. These are full rows with \t between each cell and \r\n at the end of each line. This shows up fine in Excel when you do a paste into the Excel grid. </P><DIV>However, the poster implies that he wants to copy and paste regions of the grid, and not full rows. I am curious about how he intends to use less than full rows for the copy and paste.</DIV><DIV>&nbsp;</DIV><DIV>Let's assume that a region of the Report Control is copied. This could be the region shown in your sample image, above.</DIV><DIV>&nbsp;</DIV><DIV>If it is formatted like a full row, with the same \t and \r\n delimiter, it wouls obey the same rules as the RC's current Copy function. You can paste the region's data into Excel. You can cut the data, or part of it, from Excel, and then paste it back into the Report Control at the same position or another position. </DIV><DIV>&nbsp;</DIV><DIV>If you copy some data to Excel, change it, then copy all of it from Excel, and paste it back to the exact same place in the Report Control, you should be fine. But if you copy more or fewer rows or columns from Excel, or move the selection target in the Report Control, the data may not get pasted where it should be.</DIV><DIV>&nbsp;</DIV><DIV>So I was wondering how the poster was going to match up his rows and columns. </DIV><DIV>&nbsp;</DIV><DIV>I was hoping he would share some insight about his plans to make sure the rows and columns he was pasting in made sense to his application. If they were misaligned he could be pasting garbage over his original data.</DIV>]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 10:58:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=52530&amp;title=does-reportcontrol-allows-cell-selection#52530</guid>
  </item> 
  <item>
   <title><![CDATA[Does ReportControl allows cell selection ? : It suppose to be paste outside...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=52526&amp;title=does-reportcontrol-allows-cell-selection#52526</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14750<br /><strong>Posted:</strong> 28 August 2009 at 10:48am<br /><br />It suppose to be paste outside of original RC - just selected fragments of data in CSV format?]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 10:48:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=52526&amp;title=does-reportcontrol-allows-cell-selection#52526</guid>
  </item> 
  <item>
   <title><![CDATA[Does ReportControl allows cell selection ? : If you do allow copy / paste,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=52520&amp;title=does-reportcontrol-allows-cell-selection#52520</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5499">RonSanderson</a><br /><strong>Subject:</strong> 14750<br /><strong>Posted:</strong> 28 August 2009 at 10:17am<br /><br />If you do allow copy / paste, what format would you use? <DIV>&nbsp;</DIV><DIV>I am looking into a similar application using the Report Control. </DIV><DIV>&nbsp;</DIV><DIV>The control's built-in Copy and Paste functions are oriented towards placing full rows onto the clipboard and pasting them back in. This is wise because the pasted data always starts at the beginning of the row. This keeps it aligned. Also, they create new rows, so even if the data is wrong, you just end up with a new row, which may not have the same columns - or the same meaning - as the other rows in the grid.</DIV><DIV>&nbsp;</DIV><DIV>If you have a range of columns offset into the row, do you have some technique for ensuring that the pasted data actually aligns with the current column subset? And how do you plan to paste into the selected rows rather than having the ReportControl create new rows for you?</DIV><DIV>&nbsp;</DIV><DIV>It seems that you could be pasting data in the wrong cells if the user changes the cell selection range between the cut and the paste.</DIV>]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 10:17:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=52520&amp;title=does-reportcontrol-allows-cell-selection#52520</guid>
  </item> 
  <item>
   <title><![CDATA[Does ReportControl allows cell selection ? : See snapshot and code to produce...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=51297&amp;title=does-reportcontrol-allows-cell-selection#51297</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14750<br /><strong>Posted:</strong> 24 July 2009 at 9:58pm<br /><br />See snapshot and code to produce it]]>
   </description>
   <pubDate>Fri, 24 Jul 2009 21:58:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=51297&amp;title=does-reportcontrol-allows-cell-selection#51297</guid>
  </item> 
  <item>
   <title><![CDATA[Does ReportControl allows cell selection ? : Inside this handler make a loop...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=51217&amp;title=does-reportcontrol-allows-cell-selection#51217</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14750<br /><strong>Posted:</strong> 23 July 2009 at 12:42pm<br /><br />Inside this handler make a loop and change in selected set of cells ForeColor or / and BackColor&nbsp;, <DIV>e.g.</DIV><DIV>Private Sub BlockSelect_Click()<BR>Dim i, j As Integer<BR>'MsgBox (aBlock(1) &amp; " - " &amp; aBlock(2) &amp; " -- " &amp; aBlock(3) &amp; " - " &amp; aBlock(4))<BR>Me.ReportControl1.SelectedRows.DeleteAll<BR>For j = aBlock(2) To aBlock(4)<BR>&nbsp;&nbsp;&nbsp; For i = aBlock(1) To aBlock(3)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.ReportControl1.Rows(j).Record.Item(i).BackColor = RGB(224, 224, 224)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.ReportControl1.Rows(j).Record.Item(i).ForeColor = RGB(255, 0, 0)<BR>&nbsp;&nbsp;&nbsp; Next i<BR>Next j<BR>Me.ReportControl1.Redraw<BR>End Sub<BR></DIV><DIV><img src="https://forum.codejock.com/uploads/20090724_215707_ScreenShot8.jpg" border="0"></DIV>]]>
   </description>
   <pubDate>Thu, 23 Jul 2009 12:42:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=51217&amp;title=does-reportcontrol-allows-cell-selection#51217</guid>
  </item> 
  <item>
   <title><![CDATA[Does ReportControl allows cell selection ? : Hello Sir,Thank you for your tip....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=51169&amp;title=does-reportcontrol-allows-cell-selection#51169</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5362">supermip</a><br /><strong>Subject:</strong> 14750<br /><strong>Posted:</strong> 22 July 2009 at 4:58am<br /><br />Hello Sir,<br><br>Thank you for your tip. Is there a way to mark the selected cells in blue only ? Actually, I always have the all rows selected. This would be fine to have the cells selection like in Excel.<br><br>Thank you very much in advanced.<br>Best regards.<br>supermip.<br>]]>
   </description>
   <pubDate>Wed, 22 Jul 2009 04:58:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=51169&amp;title=does-reportcontrol-allows-cell-selection#51169</guid>
  </item> 
  <item>
   <title><![CDATA[Does ReportControl allows cell selection ? :  One cell selection works with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=51119&amp;title=does-reportcontrol-allows-cell-selection#51119</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14750<br /><strong>Posted:</strong> 20 July 2009 at 3:23pm<br /><br /><FONT color=#003399 size=2><DIV>One cell selection works with flags</DIV><DIV>wndReport.AllowEdit(TRUE);</DIV></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2><FONT color=#003399>wndReport.FocusSubItems(TRUE);</P><DIV></DIV><DIV></DIV>multiple cells - may be in next version</FONT></FONT> (?) <DIV>But you can do it on app level - e.g.</DIV><DIV>&nbsp;</DIV><DIV>app level vars:</DIV><DIV>&nbsp;</DIV><DIV>Dim aBlock(4) As Integer<BR>Dim hInfo As ReportHitTestInfo</DIV><DIV>&nbsp;</DIV><DIV>actvion function:</DIV><DIV>Private Sub EmulateBlockSelection()<BR>MsgBox (aBlock(1) &amp; " - " &amp; aBlock(2) &amp; " -- " &amp; aBlock(3) &amp; " - " &amp; aBlock(4))<BR>End Sub</DIV><DIV><BR>store hit info on mouse up event:</DIV><DIV>Private Sub ReportControl1_MouseUp(Button As Integer, Shift As Integer, x As Long, y As Long)<BR>Set hInfo = Me.ReportControl1.HitTest(x, y)<BR>aBlock(3) = aBlock(1)<BR>aBlock(4) = aBlock(2)<BR>aBlock(1) = hInfo.Column.Index<BR>aBlock(2) = hInfo.Row.Index<BR>End Sub<BR></DIV>]]>
   </description>
   <pubDate>Mon, 20 Jul 2009 15:23:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=51119&amp;title=does-reportcontrol-allows-cell-selection#51119</guid>
  </item> 
  <item>
   <title><![CDATA[Does ReportControl allows cell selection ? : Hello All,Does ReportControl allows...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=50981&amp;title=does-reportcontrol-allows-cell-selection#50981</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5362">supermip</a><br /><strong>Subject:</strong> 14750<br /><strong>Posted:</strong> 15 July 2009 at 6:03am<br /><br />Hello All,<br><br>Does ReportControl allows cell selection ? It would be like Excel to be able to select a few cells from specific rows. <br><br>This is in the case we want to export via copy/paste a section of data onto the clipboard.<br><br>Thank you very much in advanced<br>Best regards.<br>supermip.<br><br><br>]]>
   </description>
   <pubDate>Wed, 15 Jul 2009 06:03:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14750&amp;PID=50981&amp;title=does-reportcontrol-allows-cell-selection#50981</guid>
  </item> 
 </channel>
</rss>