Excel
Publicado por Rosalba (1 intervención) el 21/01/2003 19:05:13
Tengo este ejemplo para recibir una tabla html a un asp
<html>
<head>
<%response.ContentType="application/vnd.ms-excel"%>
<title>ejemplo de compatibilidad Excel</title>
</head>
<body>
<table border="1" width="60%">
<tr>
<td width="50%" align= "center" bgcolor="#c0c0c0">No. de factura</td>
<td width="50%" align= "center" bgcolor="#c0c0c0">Importe</td>
</tr>
<tr>
<td width="50%" align= "center" bgcolor="#c0c0c0">1</td>
<td width="50%" align= "center" bgcolor="#c0c0c0">12000</td>
</tr>
<tr>
<td width="50%" align= "center" bgcolor="#c0c0c0">2</td>
<td width="50%" align= "center" bgcolor="#c0c0c0">24000</td>
</tr>
<tr>
<td width="50%" align= "center" bgcolor="#c0c0c0"> </td>
<td width="50%" align= "center" bgcolor="#c0c0c0"><B>=suma(B2:B3)</B></td>
</tr>
</table>
</body>
</html>
PERO ME ENVIA ESTE ERROR
Response object error 'ASP 0156 : 80004005'
Header Error
/hr/alimentos/taxis/excel1.asp, line 4
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
que puedo hacer o donde esta el error . Gracias por su ayuda bye
<html>
<head>
<%response.ContentType="application/vnd.ms-excel"%>
<title>ejemplo de compatibilidad Excel</title>
</head>
<body>
<table border="1" width="60%">
<tr>
<td width="50%" align= "center" bgcolor="#c0c0c0">No. de factura</td>
<td width="50%" align= "center" bgcolor="#c0c0c0">Importe</td>
</tr>
<tr>
<td width="50%" align= "center" bgcolor="#c0c0c0">1</td>
<td width="50%" align= "center" bgcolor="#c0c0c0">12000</td>
</tr>
<tr>
<td width="50%" align= "center" bgcolor="#c0c0c0">2</td>
<td width="50%" align= "center" bgcolor="#c0c0c0">24000</td>
</tr>
<tr>
<td width="50%" align= "center" bgcolor="#c0c0c0"> </td>
<td width="50%" align= "center" bgcolor="#c0c0c0"><B>=suma(B2:B3)</B></td>
</tr>
</table>
</body>
</html>
PERO ME ENVIA ESTE ERROR
Response object error 'ASP 0156 : 80004005'
Header Error
/hr/alimentos/taxis/excel1.asp, line 4
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
que puedo hacer o donde esta el error . Gracias por su ayuda bye
Valora esta pregunta


0