Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello again,
New post to keep things clean, I'm stuck on debugging my code. It stops at:
Try
iLogicAddin = _invApp.ApplicationAddIns.ItemById(iLogicAddinGuid)
iLogicAutomation = iLogicAddin.Automation
Catch
MessageBox.Show("Unable to access iLogic addin")
End Try
It shows the messagebox error
see below a screenshot and also the window that comes up with the 'Exception thrown' when i stop debugging my code. Any idea what causes this?
Code in insterted(in case its easier to read this way)
Private Sub RuleRunner()
Dim MyRuleName As String = "cmdRead"
Dim iLogicAddinGuid As String = "{3BDD8D79-2179-4B11-8A5A-257B1C0263AC}"
Dim iLogicAddin As ApplicationAddIn
Dim iLogicAutomation As IiLogicAutomation = Nothing
Try
iLogicAddin = _invApp.ApplicationAddIns.ItemById(iLogicAddinGuid)
iLogicAutomation = iLogicAddin.Automation
Catch
MessageBox.Show("Unable to access iLogic addin")
End Try
Try
iLogicAutomation.RunRule(oDoc, MyRuleName)
Catch
MessageBox.Show("There is no rule called " & MyRuleName)
End Try
End Sub
Solved! Go to Solution.