hola amigos: quiero generar reportes en excel y mostrarlos en el navegador. logro mostrar el reporte ... pero al abrirlos me sale un mensaje de error. y no se cual sera el error.
aca les mando el codigo de muestra.
Código:
<%@ Page aspcompat="true" Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="prueba.WebForm1"%>
<%
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader ("Content-Disposition","inline;filename=Excel.xls")%>
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<meta name="Excel Workbook Frameset">
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 9">
<xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name>primero</x:Name>
<x:WorksheetSource HRef="./prueba.htm"/>
</x:ExcelWorksheet>
<x:ExcelWorksheet>
<x:Name>segundo</x:Name>
<x:WorksheetSource HRef="./prueba.htm"/>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
<x:ProtectStructure>False</x:ProtectStructure>
<x:ProtectWindows>False</x:ProtectWindows>
</x:ExcelWorkbook>
</xml>
</head>
</html>
gracias ... saludos