我正在使用力度并尝试在初始化之前将信息传递给角度应用,因为我无法访问角度内的速度变量。可以这样做,如果是这样的话?
P.S。如果改变了什么,我正在使用require。
Microsoft.Office.Interop.Excel.Workbook xlWorkBook;
Microsoft.Office.Interop.Excel.Worksheet xlWorkSheet;
Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application();
xlApp.Visible = true;
xlApp.UserControl = true;
xlApp.WindowState = Excel.XlWindowState.xlMaximized;
xlWorkBook = xlApp.Workbooks.Add(Type.Missing);
// xlWorkBook = xlApp.Workbooks.Open(excel_filename);
xlApp.ActiveWorkbook.Sheets[1].Activate();
xlWorkSheet = (Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1);
xlWorkSheet.PasteSpecial(Missing.Value, false, false, Missing.Value, Missing.Value, Missing.Value, Missing.Value);
xlWorkBook.SaveAs(save_file_name);
Console.WriteLine("saved file name" + save_file_name);
xlWorkBook.Close();
xlApp.Quit();
$ e.getEvolutionContentAPI($ root)包括一堆js plus,包括一个名为“de”的已定义的js对象。我的角度应用程序中需要“de”。