I'm trying to run an instance of jmp from a c# program but i'm having trouble adding the reference to Visual studio.
The reference is not included in the drop down menu as described in the documentation, and I am unable to add JMP.TLB manually.
Visual studio tells me that the reference is either not accessible or it is an invalid assemble or com component.
Has anyone else come across this issue?
Much of the C# documentation is old, and references an older Visual Studio in the hope that it will reach as many people and as many different versions as possible. I tried adding a reference to Visual Studio 2013 in a C# project, and was successful. In general, you would do "Project->Add Reference..." and do a COM reference. However, VS 2013 seems to be malfunctioning there. Instead, I would bring up the Solution Explorer (attached image Step 1) and right click on "References" and do "Add Reference...". Now, rather than say Assemblies or COM, select Browse. Browse to the JMP.TLB file in c:\program files\sas\jmp\13 (directory may be different for 32-bit build or JMP Pro) and select the file. The reference should be added. I build a simple Windows Forms test case with this reference and JMP came up. The code I used was:
public partial class Form1 : Form
private void Form1_Load(object sender, EventArgs e)
myJMP = new JMP.Application();
myJMP.Visible = true;
I hope this helps.
Thanks for your reply.
unfortunately I already tried the method described on visual studio 2015 with jmp 11.2.1.
I also tried it on a different machine and i still get an error saying that jmp.tlb is either not accessible or not a valid com assembly.
With the product comes the Automation Reference and automation samples. You can find each: