The World Statistics Day celebration continues here in the Community. We all need reliable data for sound decision making. Do you have a data source that you trust most? Head over to Discussions to tell us about it.
Choose Language Hide Translation Bar
Highlighted
Jumper2Jmp
Level I

How can I call method "save as" in C# project?

Hello guys,

 

I have a data table which was generated from JMP.

And now I want to transfer this .JMP file into another format such as json...

I found that JMP software has a function "save as" after a .jmp file was opened, that's what i want.

so how can I realize it with C#?

 

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: How can I call method "save as" in C# project?

SaveAs is available from the Document object that is returned after opening a data table.  However, Automation does not support using SaveAs to save as types other than JMP files.  To do this, you will want to use the RunCommand method on the Application object.  From that, you can submit JSL to JMP to accomplish what you want.  The JSL would probably contain something like:

 

dt = current data table();
dt << Save As("$DESKTOP/test.json");

 

Brian Corcoran

JMP Development

View solution in original post

1 REPLY 1
Highlighted

Re: How can I call method "save as" in C# project?

SaveAs is available from the Document object that is returned after opening a data table.  However, Automation does not support using SaveAs to save as types other than JMP files.  To do this, you will want to use the RunCommand method on the Application object.  From that, you can submit JSL to JMP to accomplish what you want.  The JSL would probably contain something like:

 

dt = current data table();
dt << Save As("$DESKTOP/test.json");

 

Brian Corcoran

JMP Development

View solution in original post

Article Labels

    There are no labels assigned to this post.