Print Page | Close Window

BUG-Fixed: Navigator.MoveToColumn

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=14871
Printed Date: 21 December 2024 at 10:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG-Fixed: Navigator.MoveToColumn
Posted By: Stilki
Subject: BUG-Fixed: Navigator.MoveToColumn
Date 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




Replies:
Posted By: mdoubson
Date Posted: 30 July 2009 at 6:53pm
Thanks for catch. Typical bug from old code (<= 12.1) -
you can get fresh upgrade here - https://forum.codejock.com/uploads/DemoVersion/ReportControlUpdated.rar - 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
 


-------------
Mark Doubson, Ph.D.


Posted By: asim_web
Date Posted: 30 July 2009 at 7:20pm
 license information for this component is not found . This message is what I face every time I tried to insert the control into the form
 
My programming language is VB6 SP6


Posted By: SuperMario
Date Posted: 31 July 2009 at 9:05am
Did you register the ocx?


Posted By: mdoubson
Date Posted: 31 July 2009 at 9:07am
Do you Had 13.1 ocx before upgrade?

-------------
Mark Doubson, Ph.D.


Posted By: Stilki
Date Posted: 31 July 2009 at 3:12pm
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?


Posted By: mdoubson
Date Posted: 31 July 2009 at 3:25pm

This is production code in term of SVN code version. I don't see any reason to wait for official release



-------------
Mark Doubson, Ph.D.


Posted By: Stilki
Date Posted: 31 July 2009 at 3:27pm
Great. Thanks for your help!


Posted By: mdoubson
Date Posted: 31 July 2009 at 3:31pm
But you can get fresh upgrade again with extra feature from today modification ( http://forum.codejock.com/forum_posts.asp?TID=14837 - http://forum.codejock.com/forum_posts.asp?TID=14837 )
Same fixed link for fresh upgrades


-------------
Mark Doubson, Ph.D.


Posted By: Stilki
Date Posted: 31 July 2009 at 3:38pm
I downloaded the fix 45 minutes ago.
I assume this is the latest.


Posted By: mdoubson
Date Posted: 31 July 2009 at 3:46pm
Sure it is

-------------
Mark Doubson, Ph.D.


Posted By: asim_web
Date Posted: 03 August 2009 at 7:12pm
I registered the ocx and I also had 13.1 ocx before upgrade
 


Posted By: mdoubson
Date Posted: 04 August 2009 at 6:58pm
https://forum.codejock.com/uploads/DemoVersion/ReportControlUpdated.rar - https://forum.codejock.com/uploads/DemoVersion/ReportControlUpdated.rar
now supported drag and drop for sorted case (like Vista Windows Explorer) - need to use flag
ReportControl.SortedDragDrop = True (VB)
 


-------------
Mark Doubson, Ph.D.


Posted By: asim_web
Date Posted: 05 August 2009 at 9:08pm
 I decided to stop using 13.1 at all and wait for the next release whenever it comes because of
it's report control .
Thanks Codejock Genius Team , what ever happens you are the best



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net