I have a third party dll that I am trying to reference in my Silverlight project. I am able to use this dll and reference it in a test WPF application. Trying to reference this same dll in my silverlight application is not working. I am using the automationFactory class to get a handle on the dll but I am not sure if I am doing this correctly.
dynamic btApp = AutomationFactory.CreateObject("BarTender.Application");
By putting Bartender.Application as the argument in the CreateObject method I am able to get a handle on a dll, but Im afraid it is not the correct dll. How do I reference a particular dll that I need to use.
Code
dynamic btApp = AutomationFactory.CreateObject("BarTender.Application");
//dynamic btMessages = null;
dynamic btFormat = btApp.Formats.Open("c:\\Temp/Format1.btw", false, "");
btFormat.SetNamedSubStringValue("testing", barcodeValue);
btFormat.Print("Job1");
btFormat.Close(2);