2
我有Mathematica nb.file中的代碼,我想通過Net/Link在我的VB應用程序中使用它。
有沒有辦法直接使用nb.file中的代碼?例如像我會通過VB在Mathematica中執行代碼?使用Mathematica代碼nb。文件在VB.Net應用程序
我有Mathematica nb.file中的代碼,我想通過Net/Link在我的VB應用程序中使用它。
有沒有辦法直接使用nb.file中的代碼?例如像我會通過VB在Mathematica中執行代碼?使用Mathematica代碼nb。文件在VB.Net應用程序
的一個方法是建立一個字符串,像下面的說明,並在.NET中發送給mathkernel計算功能:
Needs["JLink`"];
$FrontEndLaunchCommand = "Mathematica.exe";
UseFrontEnd[nb = NotebookOpen["C:\\Temp\\run.nb"];
SelectionMove[nb, Next, Cell];
SelectionEvaluate[nb];];
Pause[10];
CloseFrontEnd[];