We have an application in Classic ASP(Active Server Pages)
We have following source code to Export a data to Excel
<% Response.ContentType="application/vnd.ms-excel"
sqlString = Trim(Request("hiddensqlstring"))
If sqlString <> "" then
set result = cn.execute(sqlString)
%>
<table border="1" style="width:300px;" align="center">
<tr>
<td align="left">ContractNo</b></td>
<td align="left">TotalNo</td>
</tr>
<% do while not result.EOF %>
<tr>
<td align="left"><%=result("ContractNo")%></td>
<td align="right"><%=result("TotalNo")%></td>
</tr>
<% result.MoveNext
loop
%>
</table>
<%Else
Response.Write("<BR> <BR> <P ALIGN=CENTER CLASS=PAGETITLE> Error </P>")
End If%>
After exporting the values the value of ContractNo which has to be "12345.678901.0100"
is getting exported as "123,456,789,010,100"
or sometimes "12,34,56,78,90,10,100"
. especially on systems where Excel is configured with Portuguese language.
Is there any settings or format changes that I have to make?