private void GenerarExcel() { StringBuilder tabla = new StringBuilder(); Funcion fn = new Funcion(); tabla.Append("<html><head><meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'></head><body><table style='width:1200px'>"); EscribeDetalle(ref tabla); tabla.Append("</table></body></html>"); fn.ExportarExcel("RepInvDiarios_" + DateTime.Now, tabla.ToString()); }
private void GenerarExcel() { try { StringBuilder tabla = new StringBuilder(); Funcion fn = new Funcion(); tabla.Append("<html><head><meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'></head><body><table style='width:700px'>"); EscribeDetalle(ref tabla); tabla.Append("</table></body></html>"); fn.ExportarExcel("Listado_Remisiones", tabla.ToString()); } catch (Exception ex) { throw ex; } }