I followed the instructions in the documentation, and everything works fine.
( docs.dhtmlx.com/doku.php?id=dhtm … cel_file&s[]=excel&s[]=xls)
Except that for the cells with date format.
example: the date 12/27/2010 turns into 40539
Do you have any suggestion to solve this problem ?
[code]<?php
//files from libExcel package
require_once(‘dhtmlxConnector/lib2/PHPExcel.php’);
require_once(‘dhtmlxConnector/lib2/PHPExcel/IOFactory.php’);
//connectors
require(“dhtmlxConnector/codebase/db_excel.php”);
require(“dhtmlxConnector/codebase/grid_connector.php”);
$grid = new GridConnector(“test.xls”, “ExcelDBDataWrapper”);
$config=new GridConfiguration();
//array of cells, with labels for grid’s header
$config->setHeader($grid->sql->excel_data(array(“A1”,“B1”,“C1”,“D1”,“E1”,“F1”,“G1”,“H1”,“I1”,“J1”,“K1”,“L1”,“M1”,“N1”,“O1”,“P1”,“Q1”)));
$grid->set_config($config);
$grid->render_table(“A2”, “A”, “A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q”);
?>[/code]