I am having a problem in working on COM Object. What I would like to achieve is to upload en Excel file which contains many columns and about 30 rows, then read everything into the MySQL database in the same format as excel.
Actually I found the code in PHP.net
$col = C;
$row = 4;
$excel_app = new COM("Excel.application") or Die ("Did not connect");
print "Application name: {$excel_app->Application->value}\n" ;
print "Loaded version: {$excel_app->Application->version}\n";
$Workbook = $excel_app->Workbooks->Open("$file") or Die("Did not open $file $Workbook");
$Worksheet = $Workbook->Worksheets($sheet1);
$Worksheet->activate;
$excel_cell = $Worksheet->Range("$col$row");
$excel_cell->activate;
$excel_result = $excel_cell->value;
print "$excel_result\n";
But I just couldn't find anything else on the use on COM Object. Anyone please could help me to solve this problem or provide any site which has source/information on the COM Object?
Thanks a lot