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

Getting Undefined Error

 Post Reply Post Reply
Author
Message
SSmith View Drop Down
Newbie
Newbie


Joined: 12 November 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote SSmith Quote  Post ReplyReply Direct Link To This Post Topic: Getting Undefined Error
    Posted: 12 November 2008 at 10:01am
I am picking up a VB6 project started in 2005 from a programmer who is no longer here. We have XT Suite 9.7 installed and licensed. When I try to run the code I get an undefined error in two spots:

Private Sub ReportControl1_RowDblClick(ByVal row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem)
    EditConnection (row.Index + 1)
    ReportControl1.SetFocus
End Sub

&

    With control.CommandBar.Controls
        Set WindowHorizOption = .Add(xtpControlButton, ID_WINDOW_TILE_HORIZANTALLY, "Tile &Horizontally", -1, False)
        WindowHorizOption.DescriptionText = "Tile session windows horizontally"

If I comment out these lines, I get get the program to run but I am sure I missing some functionality. Any idea how I can redefine these properly?
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: 21 November 2008 at 2:10am
Hi,
 
  1. I guess EditConnection is somekind of function and I tried with V12.1 and it didn't raise an error. You could show me the code inside this function, maybe it has something to do with that. 
  2. If WindowHorizOption is declared as CommandBarButton I don't see what would be wrong.

Maybe you better update version. You can download free trial version to test your issues.

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
SSmith View Drop Down
Newbie
Newbie


Joined: 12 November 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote SSmith Quote  Post ReplyReply Direct Link To This Post Posted: 21 November 2008 at 9:40am
Actually, I found the solution to both problems.
1) Although I installed the CodeJocks and registered, it was not automatically turned on in the application. I had to put the checkmark in the components list.
2) the second issue I was having with the Horizontal component was that it was originally setup us as "Horizantal" and someone corrected the spelling of the dimmed variable to "Horizontal". A couple of quick spelling changes fixed that.

Thanks for posting.

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.