Wednesday, November 1, 2017

hata: excel aktarım: The number of arguments provided is different from the number of arguments accepted by the method.

The number of arguments provided is different from the number of arguments accepted by the method.
Update post : 
The solution is  :
boolean importLines()
{
    SysExcelApplication         application = SysExcelApplication::construct();
    SysExcelWorkBooks           workBooks   = application.workbooks();
    SysExcelWorkSheets          workSheets;
    SysExcelWorkSheet           workSheet;
    SysExcelCells               cells;
    
// the solution is puting the bellow line code  after initializing SysExcelApplication
application.displayAlerts(false);
//.... code

//and In the end 
application.workbooks().close(); 
application.quit(); 
application.finalize(); 
application = null;
 }

0 yorum:

Post a Comment