WaterTight
Programmer
Using an XML for excel - have the following code:
The problem is that when I open the file with Excel, the serial number appears instead of the date time. I've tried specifying <Cell ss:Formula="=TODAY()" Type="DateTime"> but it doesn't seem to like that either.
If I edit the cell in Excel - and just hit Enter, it formats it correctly. Is there a way to force formatting when the file is opened?
thanks,
J
Code:
<?xml version="1.0" encoding="utf-8"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="[URL unfurl="true"]http://www.w3.org/TR/REC-html40">[/URL]
<Worksheet ss:Name="Sheet1">
<Table>
<Row>
<Cell ss:Formula="=TODAY()"></Cell>
</Row>
</Table>
</Worksheet>
</Workbook>
The problem is that when I open the file with Excel, the serial number appears instead of the date time. I've tried specifying <Cell ss:Formula="=TODAY()" Type="DateTime"> but it doesn't seem to like that either.
If I edit the cell in Excel - and just hit Enter, it formats it correctly. Is there a way to force formatting when the file is opened?
thanks,
J