on 10-26-2010 10:42 AM
Hi
I have just upgraded my pc to SAP 8.8 from 2007 and I get an 'automation error - library not registered' on one of my old vb6 applications
My newer vb.net programs seem fine
I have checked the references and the di api 8.8 and ui api 8.8 are selected
I have deleted the sm_obs_dll folder in my temp folder and registered the di api program
Can anyone suggest anything please ?
Thanks
Regards Andy
Hi Andy,
A good option is to convert old program to new if possible.
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gordon
It seems to be a problem even if I create a new application
It seems to be a problem with the ui api, the di api seems to work fine
I have reloaded the client but with no joy
How would I manually register the ui api ?
Also someone has told me I need to update my office, I am running 2003
Could that be a problem as well ?
Thanks
Regards Andy
Hi Gordon
I connected using code created by the B1 dev environment 2.1
Here is my code, it's the line
form.Items.Item("14").Specific.string = "hope"
which gives me the error
Thanks
Regards Andy
Public Class Button__139__1
Inherits B1Item
Public Sub New()
MyBase.New
FormType = "139"
ItemUID = "1"
End Sub
<B1Listener(BoEventTypes.et_CLICK, false)> _
Public Overridable Sub OnAfterClick(ByVal pVal As ItemEvent)
Dim ActionSuccess As Boolean = pVal.ActionSuccess
Dim form As Form = B1Connections.theAppl.Forms.Item(pVal.FormUID)
Dim item As Item = form.Items.Item("1")
Dim button As Button = CType(item.Specific,Button)
'ADD YOUR ACTION CODE HERE ...
Dim recset As Recordset = B1Connections.diCompany.GetBusinessObject(BoObjectTypes.BoRecordset)
recset.DoQuery("select * from ocrd")
form.Items.Item("14").Specific.string = "hope"
End Sub
End Class
I know you shouldn't have to, but maybe try casting - I had problems working with VB.NET on the 2007 version if I didn't cast objects
so like:
CType(form.Items.Item("14").Specific, SAPbouiCOM.EditText).String = "hope"
or maybe try the value property:
CType(form.Items.Item("14").Specific, SAPbouiCOM.EditText).Value = "hope"
It's guesswork but based on the fact that you have connected and already got the form object succesfully so I don't think it can mean your library isnt registered; if it wasn't, surely your form object would be empty?
Well I presume you have already reinstalled DI API - have you tried using regsvr? In a DOS command window, try REGSVR32 /u "full path to DI API dll" to un-register followed by REGSVR32 "full path to DI API dll" to re-register.
Then you can also register the UI by going to your B1 client directory and running the SAPbouiCOM.exe.
If that's what you meant you've already tried, sorry I couldn't be any help 😕 My next suggestion would be full uninstall reinstall but its a bit drastic, maybe hang around til someone else has a better idea
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.