hola a todos. hice una aplicacion para exportar datos a word en php. me exporta bien pero mi problema es que no me justifica los textos. mi codigo para exportar a word es en php:
Código PHP:
header("Content-type: application/vnd.ms-word");
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Disposition: attachment;filename=documento.doc");
<div align="justify">
<strong><em>Lorem Ipsum is simply dummy text of the printing typesetting </em></strong><br/>
<strong><em>Lorem Ipsum is simply dummy text of the printing typesetting </em></strong><br/>
<strong><em>Lorem Ipsum is simply dummy text of the printing typesetting </em></strong><br/>
</div>
y aun asi no me justifica los textos. por que sera. el word no soporta codigo html. habra una manera de justificar los textos. y si la hay, k clase de php se debe utilizar para generar doucmentos word en php.
saludos.