2012-09-09 27 views

回答

1

的一個方法是建立一個字符串,像下面的說明,並在.NET中發送給mathkernel計算功能:

Needs["JLink`"]; 
$FrontEndLaunchCommand = "Mathematica.exe"; 
UseFrontEnd[nb = NotebookOpen["C:\\Temp\\run.nb"]; 
    SelectionMove[nb, Next, Cell]; 
    SelectionEvaluate[nb];]; 
Pause[10]; 
CloseFrontEnd[]; 

參考。 Uncaught Throw generated by JLink or UseFrontEnd

相關問題