Hi, I'm trying to use the AccpacFinder.ViewFinder
I get an unhandled exception once I get to af.Finder(). No errors show up in af.Session.Errors. I'm using the AccpacCOMAPI on Windows 7 64bit with the program running in 32bit. I've tried everything I can think of but I can't seem to get this working. Any help is appreciated!
The code from within a button click event:
I get an unhandled exception once I get to af.Finder(). No errors show up in af.Session.Errors. I'm using the AccpacCOMAPI on Windows 7 64bit with the program running in 32bit. I've tried everything I can think of but I can't seem to get this working. Any help is appreciated!
The code from within a button click event:
Code:
Dim af As AccpacFinder.ViewFinder
Dim SearchArray() As Object = {3, 4, 5, 6}
Dim DisplayArray() As Object = {3, 4, 5, 6}
Dim ReturnArray() As Object = {3}
Me.Cursor = Cursors.WaitCursor
af = New AccpacFinder.ViewFinder
af.Session = al.Session
af.ViewID = "IC0160"
af.ViewOrder = 3
af.SearchFieldIDs = SearchArray
af.DisplayFieldIDs = DisplayArray
af.ReturnFieldIDs = ReturnArray
af.Filter = ""
af.Finder()
af = Nothing