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 tableActiveWorkBook EApp. OlePropertyGet (" "). OleProcedure (" Close ");
EApp. OleFunction (" Quit ");
CodePudding user response:
Change the machine test, maybe you have a problem of the machine system,