Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a problem adding iLogic and also the dll's give me a warning, dont know what i'm doing wrong...
.
void AddiLogic()
{
string MyRuleName = "rulename";
string iLogicAddinGuid = "{3BDD8D79-2179-4B11-8A5A-257B1C0263AC}";
ApplicationAddIn iLogicAddin;
object iLogicAutomation = null;
try
{
iLogicAddin = _invApp.ApplicationAddIns.ItemById[iLogicAddinGuid];
iLogicAutomation = iLogicAddin.Automation;
}
catch (Exception ex)
{
MessageBox.Show("Unable to access iLogic addin " + ex.Message);
}
try
{
iLogicAutomation.RunRule(oDoc, MyRuleName);
}
catch
{
MessageBox.Show("There is no rule called " + MyRuleName);
}
}
Solved! Go to Solution.