Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Adding Rows
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding Rows

 Post Reply Post Reply
Author
Message
markmark View Drop Down
Senior Member
Senior Member


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post Topic: Adding Rows
    Posted: 04 August 2010 at 10:14am
Hi
 
For a long time I create my columns with  ReportControl1.Columns.Add 0, "Col1"
 
Then I have to create a row with Set Record = wndReportControl.Records.Add
 
Then I have to create each column item within that row with Record.AddItem
 
Should, or is there away to have the created Record  by default have its ReportRecordItem created when the record is added.
 
Thanks
 
Mark
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0
Back to Top
dailyblog View Drop Down
Groupie
Groupie


Joined: 11 July 2009
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote dailyblog Quote  Post ReplyReply Direct Link To This Post Posted: 05 August 2010 at 12:25am
i except there would be a easier way adding a row.
As you said,after a row is added with Records.Add, each item of the row should be added automaticly.
In addition,how can I  get the value of a focused cell?The codes seems a bit more.Why can not we use ReportControl.Cell(row.index,col.index) ?
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2010 at 12:50pm
Hi, Mark
 
I would expect to add records with a predefined record (including the ReportItems) but it seems it can't be done. I tried with .CreateRecord and ReportRecord but it doesn't add the record (tried with Me.wndReportControl.AddRecordEx pRecord ) to Records collection.
Question for support: should it be possible?
 
 
@dailyblog: You can get value of a ReportItem:
 
Me.wndReportControl.FocusSubItems = True 'Enable focus for ReportItems
Me.wndReportControl.FocusedRow.Record.Item(Me.wndReportControl.FocusedColumn.ItemIndex).Value
 


 
 
 
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.