1
C, C++, C#, Java, Visual Basic, HTML, PHP, CSS, Javascript, Ajax, Joomla, MySql y más / Crear un documento de Word usando PHP colspan y rowspan en tablas unir celdas
« en: 31 de Mayo 2017, 19:27 »
BUEN@S DTN A TODOS,
PODRIA ALGUIEN AYUDARME EN UN PROBLEMITA QUE TENGO: ESTOY CREANDO UNA TABLE HTML EN PHP PORQUE QUIERO QUE SE CONVIERTA A UN ARCHIVO DE WORD,LA CUESTION ES QUE AL AGREGARLE LAS ETIQUETAS ROWSPAN Y COLSPAN PARA COMBINAR CELDAS ME GENERA ERRORES Y NO TOMA LOS CAMBIOS; QUE DEBO HACER? GRACIAS POR SUS APORTES!
PODRIA ALGUIEN AYUDARME EN UN PROBLEMITA QUE TENGO: ESTOY CREANDO UNA TABLE HTML EN PHP PORQUE QUIERO QUE SE CONVIERTA A UN ARCHIVO DE WORD,LA CUESTION ES QUE AL AGREGARLE LAS ETIQUETAS ROWSPAN Y COLSPAN PARA COMBINAR CELDAS ME GENERA ERRORES Y NO TOMA LOS CAMBIOS; QUE DEBO HACER? GRACIAS POR SUS APORTES!
Código: [Seleccionar]
<?php
header("Content-type:application/vnd.ms-word");
header("Conten-Disposition:attachment;Filename=documento.doc");
echo "<html>";
echo "<meta http-equiv=\"content-Type\"content=\text\html;charset=utf-8\">";
echo"<body>";
echo "<br><br>Mi primer documento</br></br>";
echo "Aquí";
echo "<table>";
echo "<tr>";
echo "<td>imagen del sena</td>";
echo "<th><h2>FORMATO PARA PROTOCOLO DE DETERMINACION DE MOLIENDA F0205043</h2></th>";
echo "<th><h3>LABORATORIO DE ENSAYOS PARA EL MOBILIARIO </h3></th>";
echo "</tr>";
echo "<br>";
echo "<br>";
echo "<h3>Codigo de la Solicitud del servicio</h3>";
echo "<tr>";
echo "<th><h2>1.Informacion de la muestra</h2></th>";
echo "</tr>";
echo "<tr>";
echo "<td><h3>Fecha y Hora de Ejecucion del Ensayo</h3></td>";
echo "<td><h3>Tiempo dedicado a la Ejecucion del ensayo</h3></td>";
echo "<td><h3>Nombre de la Muestra</h3></td>";
echo "<td><h3>Tipo de Recubrimiento</h3></td>";
echo "<td><h3>Proporcion de Dilucion</h3></td>";
echo "<td><h3>Proporcion de catalizador o Endurecedor</h3></td>";
echo "</tr>";
echo "<tr>";
echo "<td> </td>";
echo "<td> </td>";
echo "<td> </td>";
echo "<td> </td>";
echo "<td> </td>";
echo "<td> </td>";
echo "<td> </td>";
echo "</tr>";
echo "<tr>";
echo "<th><h2>2.Planificacion del Ensayo</h2></th>";
echo "</tr>";
echo "<tr>";
echo "<td><h3>Norma o Procedimiento</h3></td>";
echo "<td><h3>Equipos Elementos e insumos utilizados</h3></td>";
echo "<td><h3>codigo</h3></td>";
echo "<td><h3>Equipos,elementos e insumos utilizados</h3></td>";
echo "<td><h3>Codigo</h3><td>";
echo "</tr>";
echo "<tr>";
echo "<td<h3>rowspan='4'>NTC 557 L0205007</h3></td>";[color=orange]/*tuve que cambiar las comillas dobles por simples y aun asi no funciona :([/color]
echo "<td><h3>Calibrador tipo hegman de dos pistas</h3></td>";
echo "<td><h3> </h3></td>";
echo "<td><h3>Brocha</h3></td>";
echo "<td><h3> </h3></td>";
echo "</tr>";
echo "<tr>"