BookmarkSubscribe
Choose Language Hide Translation Bar
Highlighted
Jumper2Jmp
Community Trekker

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.

0 Kudos
1 ACCEPTED SOLUTION

Accepted Solutions

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

1 REPLY 1

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