![]() |
Unable to Purge a record using RemoveRecordEx |
Post Reply ![]() |
Author | |
blkn ![]() Newbie ![]() ![]() Joined: 07 November 2006 Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() Posted: 03 May 2007 at 1:30am |
When i try to use the ReportControl's RemoveRecordEx / RemoveRowEx to eliminate a row as well as record from the ReportControl, the application throws the "Type mismatch" error, the code snippet for the same has been detailed below,
Code Snippet:
Private Sub ReportControl1_RowRClick(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem)
Dim popId As Long, ChildRecord As ReportRecord popId = PopupBar.ShowPopup(TPM_RETURNCMD) Immediate action required.
|
|
Bala...
|
|
![]() |
|
mlatona ![]() Senior Member ![]() Joined: 19 April 2005 Location: Germany Status: Offline Points: 124 |
![]() ![]() ![]() ![]() ![]() |
I have the same problem. What is the problem? Is it a bug? Have Codejock a fix?
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Don't you see some mismatch in the name of the method and a parameter? ![]() -- WBR, Serge |
|
![]() |
|
blkn ![]() Newbie ![]() ![]() Joined: 07 November 2006 Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() |
Even if, you pass the record object to the RemoveRecordEx method, the result remains the same. i.e. we are getting the type mismatch error.
To Simulate the same, Open a Vb Std Exe Project, add reportcontrol and commandbars of Codejock 11.1.0 release. Then put the following code block into the form1 module.
'Code Block:
Dim PopupBar As XtremeCommandBars.CommandBar
Private Sub Form_Load()
Dim xR As ReportRecord, i As Integer, j As Integer Dim xbtn As CommandBarControl Set PopupBar = CommandBars1.Add("Popup", xtpBarPopup) With PopupBar.Controls Set xbtn = .Add(xtpControlButton, 0, "Remove Record") End With For j = 0 To 3 ReportControl1.Columns.Add j, "Col" & Str(j), 100, True Next j For i = 1 To 20 Set xR = ReportControl1.Records.Add For j = 1 To 4 xR.AddItem "Cell" & Str(i) & Str(j) Next j Next i ReportControl1.Populate End Sub Private Sub Form_Resize()
ReportControl1.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight End Sub Private Sub ReportControl1_RowRClick(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem)
Dim popId As Long, ChildRecord As ReportRecord popId = PopupBar.ShowPopup(TPM_RETURNCMD) Select Case popId Case 0 'ReportControl1.RemoveRecordEx Row.Record ReportControl1.RemoveRowEx Row ReportControl1.Populate Case Else End Select End Sub |
|
Bala...
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
This may sound strange, but your code work for me perfectly...
I suppose that you do have a few different versions of the Report control, and "Type mismatch" is between different versions of calling procedure and called object. Check components references of your project. -- WBR, Serge |
|
![]() |
|
blkn ![]() Newbie ![]() ![]() Joined: 07 November 2006 Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() |
Yes, this may sound strange, because it is fresh formatted m/c, in which i installed codejock 11.1.0. Second thing, i had also verified the components references of the project, it is pointing to the required path.
|
|
Bala...
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
I've built your sample and it works. Check whether the same executable work for you.
uploads/20070515_185243_blknSample.zip -- WBR, Serge |
|
![]() |
|
mlatona ![]() Senior Member ![]() Joined: 19 April 2005 Location: Germany Status: Offline Points: 124 |
![]() ![]() ![]() ![]() ![]() |
Sorry, I become the same error (Type mismatch) when I start your executable. I use the version 11.1.0.0
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Well, identified this as a known bug which is already fixed for version 11.1.2.
Thanks. -- WBR, Serge |
|
![]() |
|
blkn ![]() Newbie ![]() ![]() Joined: 07 November 2006 Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() |
Thanks for the extended support.
Would i be able to know the possible due date of fix release.
|
|
Bala...
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Should be available in public in about 1 week or less.
-- WBR, Serge |
|
![]() |
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 |