<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automating JMP with c# and visual studio. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/14093#M13203</link>
    <description>&lt;P&gt;Hi Toby,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&amp;nbsp; I tried adding a reference to Visual Studio 2013 in a C# project, and was successful.&amp;nbsp; In general, you would do "Project-&amp;gt;Add Reference..." and do a COM reference.&amp;nbsp; However, VS 2013 seems to be malfunctioning there.&amp;nbsp; Instead, I would bring up the Solution Explorer (attached image Step 1) and right click on "References" and do "Add Reference...".&amp;nbsp; Now, rather than say Assemblies or COM, select Browse.&amp;nbsp; 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.&amp;nbsp; The reference should be added.&amp;nbsp; I build a simple Windows Forms test case with this reference and JMP came up.&amp;nbsp; The code I used was:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;public partial class Form1 : Form
{
  JMP.Application myJMP;
  {
    public Form1()
  }
  private void Form1_Load(object sender, EventArgs e)
  {
    myJMP = new JMP.Application();
    myJMP.Visible = true;
  }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian Corcoran&lt;/P&gt;
&lt;P&gt;JMP Developmen&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Step 1" style="width: 167px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11678i8D6FA57BDEF90EFE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Step1.PNG" alt="Step 1" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Step 1&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Step 2" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11679iBF28ABD0CDB5CE58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Step2.PNG" alt="Step 2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Step 2&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jul 2018 13:43:53 GMT</pubDate>
    <dc:creator>briancorcoran</dc:creator>
    <dc:date>2018-07-24T13:43:53Z</dc:date>
    <item>
      <title>Automating JMP with c# and visual studio.</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/14092#M13202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to run an instance of jmp from a c# program but i'm having trouble adding the reference to Visual studio.&lt;/P&gt;&lt;P&gt;The reference is not included in the drop down menu as described in the documentation, and I am unable to add JMP.TLB manually.&lt;/P&gt;&lt;P&gt;Visual studio tells me that the reference is either not accessible or it is an invalid assemble or com component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else come across this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 08:11:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/14092#M13202</guid>
      <dc:creator>toby_roche0</dc:creator>
      <dc:date>2015-09-01T08:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Automating JMP with c# and visual studio.</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/14093#M13203</link>
      <description>&lt;P&gt;Hi Toby,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&amp;nbsp; I tried adding a reference to Visual Studio 2013 in a C# project, and was successful.&amp;nbsp; In general, you would do "Project-&amp;gt;Add Reference..." and do a COM reference.&amp;nbsp; However, VS 2013 seems to be malfunctioning there.&amp;nbsp; Instead, I would bring up the Solution Explorer (attached image Step 1) and right click on "References" and do "Add Reference...".&amp;nbsp; Now, rather than say Assemblies or COM, select Browse.&amp;nbsp; 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.&amp;nbsp; The reference should be added.&amp;nbsp; I build a simple Windows Forms test case with this reference and JMP came up.&amp;nbsp; The code I used was:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;public partial class Form1 : Form
{
  JMP.Application myJMP;
  {
    public Form1()
  }
  private void Form1_Load(object sender, EventArgs e)
  {
    myJMP = new JMP.Application();
    myJMP.Visible = true;
  }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian Corcoran&lt;/P&gt;
&lt;P&gt;JMP Developmen&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Step 1" style="width: 167px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11678i8D6FA57BDEF90EFE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Step1.PNG" alt="Step 1" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Step 1&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Step 2" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11679iBF28ABD0CDB5CE58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Step2.PNG" alt="Step 2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Step 2&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 13:43:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/14093#M13203</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2018-07-24T13:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Automating JMP with c# and visual studio.</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/14094#M13204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;unfortunately I already tried the method described on visual studio 2015 with jmp 11.2.1.&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 14:11:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/14094#M13204</guid>
      <dc:creator>toby_roche0</dc:creator>
      <dc:date>2015-09-01T14:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Automating JMP with c# and visual studio.</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/14095#M13205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you an Administrator on the machine in question?&amp;nbsp; Do you have copy/write access?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 14:55:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/14095#M13205</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2015-09-03T14:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Automating JMP with c# and visual studio.</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/14096#M13206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same problem and I am logged on to my machine as an admin!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 21:04:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/14096#M13206</guid>
      <dc:creator>m_shaheen</dc:creator>
      <dc:date>2016-01-04T21:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Automating JMP with c# and visual studio.</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/53309#M30179</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3022"&gt;@briancorcoran&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Is there an updated documentation page that shows how a user can initiate JMP using C# ? Kindly share&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 19:37:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/53309#M30179</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-03-16T19:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Automating JMP with c# and visual studio.</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/53310#M30180</link>
      <description>&lt;P&gt;Uday,&lt;/P&gt;
&lt;P&gt;With the product comes the Automation Reference and automation samples. You can find each:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Automation Reference: C:\Program Files\SAS\JMPPRO\13\Documentation\Automation Reference.pdf&lt;/LI&gt;
&lt;LI&gt;Samples: C:\Program Files\SAS\JMPPRO\13\Samples\Automation\&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 16 Mar 2018 20:31:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/53310#M30180</guid>
      <dc:creator>Wendy_Murphrey</dc:creator>
      <dc:date>2018-03-16T20:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Automating JMP with c# and visual studio.</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/63699#M34083</link>
      <description>&lt;P&gt;It's not clear whether this issue&amp;nbsp;was&amp;nbsp;resolved?&amp;nbsp; &amp;nbsp;I am having similar problems as the OP with jmp.tlb,&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;I have tried to&amp;nbsp;reference&amp;nbsp;it for each C++, C# and VB following the respective automation reference instructions, and the procedure starting from the solution explorer listed in the replies.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;(i.e. all cases lead the error window: "A reference to 'C:\Program Files\SAS\JMP\14\jmp.tlb' could not be added.&amp;nbsp; Please makes sure that the file is accessible, and that it is a valid assembly or COM component")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;I am using&amp;nbsp;Visual Studio 2017 + JMP14, are others still having this problem?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 21:08:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/63699#M34083</guid>
      <dc:creator>Benkins</dc:creator>
      <dc:date>2018-07-23T21:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Automating JMP with c# and visual studio.</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/63735#M34105</link>
      <description>&lt;P&gt;I was able to reference the V14 type library with Visual Studio 2017 without issue in C#.&amp;nbsp; I used Project-&amp;gt;Add Reference and then browsed to the type library in c:\program files\sas\jmp\14.&amp;nbsp; Please note that if&amp;nbsp; you have multiple versions of JMP installed, automation will start the last one installed regardless of which type library you reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm including a ZIP file of a VS 2017 project to just start/quit JMP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian Corcoran&lt;/P&gt;
&lt;P&gt;JMP Development&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 12:41:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/63735#M34105</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2018-07-24T12:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Automating JMP with c# and visual studio.</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/63736#M34106</link>
      <description>&lt;P&gt;I would also make sure you haven't created your project in a read-only directory, like in program files somewhere.&amp;nbsp; Referencing the type library causes Visual Studio to emit a new file with the class/interface definitions for JMP Automation.&amp;nbsp; If it cannot write out that file, it will fail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian Corcoran&lt;/P&gt;
&lt;P&gt;JMP Development&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 12:44:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/63736#M34106</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2018-07-24T12:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Automating JMP with c# and visual studio.</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/63762#M34107</link>
      <description>&lt;P&gt;I know what the problem is.&amp;nbsp; If you installed a new version of JMP (example JMP 14) then next uninstalled an old version of JMP (example JMP 13) the Windows registry key for JMP automation gets deleted.&amp;nbsp; To reset the registry key in JMP go to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File, Preferences,&amp;nbsp; Windows Specific, the click the button that says Reset Associations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Go back to Visual Studio and rebuild your solutions, and you are now in business!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 12:58:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/63762#M34107</guid>
      <dc:creator>ChrisM_X</dc:creator>
      <dc:date>2018-07-24T12:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Automating JMP with c# and visual studio.</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/63763#M34108</link>
      <description>&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/JMP-automation-amp-missing-registry-key/m-p/48105" target="_blank"&gt;https://community.jmp.com/t5/Discussions/JMP-automation-amp-missing-registry-key/m-p/48105&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 13:03:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/63763#M34108</guid>
      <dc:creator>ChrisM_X</dc:creator>
      <dc:date>2018-07-24T13:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Automating JMP with c# and visual studio.</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/63809#M34145</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/10337"&gt;@ChrisM_X&lt;/a&gt;&amp;nbsp;thanks!&amp;nbsp; That solved it!!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 19:42:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-JMP-with-c-and-visual-studio/m-p/63809#M34145</guid>
      <dc:creator>Benkins</dc:creator>
      <dc:date>2018-07-24T19:42:11Z</dc:date>
    </item>
  </channel>
</rss>

