This program demonstrates saving a file to a PC using YMConnect. The code is the same for Windows or Linux. It can be used for files other than JBI files as well.
#include "YMConnect.h"
void main()
{
StatusInfo status{};
//Open up the connection to the controller.
auto c = YMConnect::OpenConnection("192.168.1.31", status);
//This saves the active job to a file called "TEST1.JBI" in the directory "C:\\Users\\Public\\Documents\\, true means it will overwrite the file if it already exists."
status = c->Files->SaveFromControllerToFile("TEST1.JBI", "C:\\Users\\Public\\Documents\\TEST1.JBI", true);
//Remember to close the connection at the end of the program.
YMConnect::CloseConnection(c);
}
Comments
0 comments
Please sign in to leave a comment.