![]() |
BUG-Fixed: Navigator.MoveToColumn |
Post Reply ![]() |
Author | |
Stilki ![]() Groupie ![]() Joined: 27 May 2005 Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() Posted: 30 July 2009 at 8:19am |
Automation error
The object invoked has disconnected from its clients. An automation error occurs when you have one HeaderRow, no row records and you call: ReportControl.Navigator.MoveToColumn Column.index To reproduce the error, add one header row with a couple f Items. Set Record = ReportControl.HeaderRecords.Add() Record.AddItem "" Record.AddItem "" ReportControl.Populate ReportControl.Redraw Set focus to header row, then call: ReportControl.Navigator.MoveToColumn Column.index where Column.index is a valid item index. You will get the error each time. If you have at least one record (not the header record) you do not get the error. To work around this problem, I have had to implement the following: If ReportControl.PopulatedRecordsCount = 0 Then Dim Rec As ReportRecord Set Rec = ReportControl.AddRecord ReportControl.Populate ReportControl.Navigator.MoveToColumn Column.index ReportControl.RemoveRecordEx Rec ReportControl.Populate End If You have to call Populate otherwise it does not work :( Environment: CodeJock ActiveX COM v13.1 WinXP SP3 32/64bit ![]() |
|
![]() |
|
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
Thanks for catch. Typical bug from old code (<= 12.1) -
you can get fresh upgrade here - https://forum.codejock.com/uploads/DemoVersion/ReportControlUpdated.rar
unrar it on same place your official 13.1 located. may be rename the same way as official filename use No need to re-registrate as you already had it Please retest your case and post about it. Below is MFC sample - 1 header row, 1 footer row, no body rows (red line - header separator, blue line - footer separator). Top picture part- before call, bottom picture part - after wndReport.GetNavigator()->MoveToColumn(2); call ![]() |
|
![]() |
|
asim_web ![]() Newbie ![]() ![]() Joined: 10 September 2007 Location: United Arab Emirates Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
![]() My programming language is VB6 SP6
|
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
Did you register the ocx?
|
|
![]() |
|
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
Do you Had 13.1 ocx before upgrade?
|
|
![]() |
|
Stilki ![]() Groupie ![]() Joined: 27 May 2005 Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
The update that you have provided from the link in the post fixes this problem. I do not get the problem anymore.
I simply followed your instructions and all worked fine. Can I deploy this update to a production environment or should I wait for an official release where all fixes have been tested and verified? |
|
![]() |
|
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
This is production code in term of SVN code version. I don't see any reason to wait for official release |
|
![]() |
|
Stilki ![]() Groupie ![]() Joined: 27 May 2005 Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
Great. Thanks for your help!
|
|
![]() |
|
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
But you can get fresh upgrade again with extra feature from today modification (http://forum.codejock.com/forum_posts.asp?TID=14837)
Same fixed link for fresh upgrades
|
|
![]() |
|
Stilki ![]() Groupie ![]() Joined: 27 May 2005 Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
I downloaded the fix 45 minutes ago.
I assume this is the latest. |
|
![]() |
|
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
Sure it is
|
|
![]() |
|
asim_web ![]() Newbie ![]() ![]() Joined: 10 September 2007 Location: United Arab Emirates Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
I registered the ocx and I also had 13.1 ocx before upgrade
|
|
![]() |
|
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
now supported drag and drop for sorted case (like Vista Windows Explorer) - need to use flag
ReportControl.SortedDragDrop = True (VB)
|
|
![]() |
|
asim_web ![]() Newbie ![]() ![]() Joined: 10 September 2007 Location: United Arab Emirates Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
![]() it's report control .
Thanks Codejock Genius Team , what ever happens you are the best
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |