Home > Back-end >  Ole cannot excel end process
Ole cannot excel end process

Time:10-12

Every function involving excel in memory remains a excel process, even closed software cannot end,

Always perform closed, as follows:
Void ExcelController: : ExitExcel ()
{
M_varExcelApp. OlePropertySet (" DisplayAlerts ", (Variant), false);
M_varWorkbook. OleFunction (" Save ");
M_varExcelApp. OleFunction (" Save ");//exit Excel
M_varExcelApp. OleFunction (" Close ");//exit Excel
M_varExcelApp. OleFunction (" Quit ");//exit Excel

M_varSheet=Unassigned ();
M_varWorkbook=Unassigned ();
M_varExcelApp=Unassigned ();
}

Please expert advice, thank you!

CodePudding user response:

 
ActiveWorkbook m_varExcelApp. OlePropertyGet (" "). OleFunction (" Save ");
M_varExcelApp. OleFunction (" Quit ");
M_varSheet=Unassigned;
M_varExcelApp=Unassigned;

CodePudding user response:

Still I can't, depressed!

CodePudding user response:

Turn off table
ActiveWorkBook EApp. OlePropertyGet (" "). OleProcedure (" Close ");
EApp. OleFunction (" Quit ");

CodePudding user response:

Change the machine test, maybe you have a problem of the machine system,
  • Related