Excel output question
Afternoon - I am outputting data to a .xls file. The method I am using is simply adding:
Response.ContentType = "application/vnd.ms-excel"
To the head of my .asp page. I would like this particular column to look like this (actual values):
23/10
8/10
43/10
9/10
25/10
However Excel is trying to be a bit smart and convert these to dates therefore my output when opened inside Excel is:
23-Oct (incorrect)
8-Oct (incorrect)
43/10 Correct
9-Oct (incorrect)
25-Oct (incorrect)
Any ideas how I can fix this inside the .ASP file so the these values do not get converted??
TYIA
Note - If I surrounf the value in double quotes inside the .asp page this works but of course the values have the double quotes around them in the .xls file which I would rather not see...
__________________
Wind is your friend
Matt
Last edited by mat41; November 16th, 2010 at 11:02 PM..
|