Opened 15 years ago
Last modified 14 years ago
#1214 accepted enhancement
xls::ReadSeriesByCol fails when the date is with date format
| Reported by: | Jorge | Owned by: | Jorge |
|---|---|---|---|
| Priority: | normal | Milestone: | Mantainance |
| Component: | Excel API | Version: | 2.0.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
The ex1.xls attached could not be read using ReadSeriesByCol.
While the ex1.1.xls attached can be read.
The difference is that ex1.xls has the dates in text format while ex1.1.xls has the dates with date format.
#Require TolExcel;
TolExcel::@WorkBook xls = TolExcel::@WorkBook::Open("/tmp/ex1.xls");
Real xls::ActivateWS(1);
Set xls::ReadSeriesByCol( 1, 1, 12, 2, W, "%d-%m-%Y" );
Attachments (2)
Change History (5)
Changed 15 years ago by
Changed 15 years ago by
comment:1 Changed 15 years ago by
| Status: | new → accepted |
|---|
comment:2 Changed 14 years ago by
Note: See
TracTickets for help on using
tickets.

We can guess the data type of the date column in order to provide the correct column's type when calling ReadRange which read the dates.