I think i found a problem with DateTime Cells and Excel2007 workbook format. This problem occur only if you reWrite data on an existing worksheet. In this case the date format is lost and you have to select all datetime cells on Excel to set their format to Date and get the right date format.
Writing same data in a new worksheet doesn't lost the date format.
if the worsheet exist :
workBook.Worksheets.Remove(workBook.Worksheets[worksheetName]);worksheet = workBook.Worksheets.Add(worksheetName);
Initialize all cells from a database, the datetime format is lost
If the worksheet doesn't existworksheet = workBook.Worksheets.Add(worksheetName);
The datetime format is ok
This problem doesn't occur for Excel2003 format.
Best regards
Florent, French
Hello,
Is there anybody who can reproduce this problem. Maybe my description is not very clear as i am a French Guy...
Regards
Florent.
Hi Florent,
I'm not sure I understand exactly what you are describing. Can you post a small sample project and give me some steps I can follow in order to duplicate the problem?