Enrique Arroniz - 2013-04-10 18:35:17
Ok, made it work to generate Word format reports and I managed to make <<< EOT [CSS Style + HTML code) EOT; in order to add paragraphs and print them as HTML Tables. Looks nice but when I make the output:
$name = (''.$client_name.$date.'_Report.doc');
$route = ('myfolder/word_documents/');
$doc->output($name, $route);
@ob_end_clean();
$doc->output($name);
I make it twice because I need to save the generated document in a folder and then open it. Works nice but when I open the document it is seen in Web View.
Is there a way to change the default view to Print View when I open it?
Thanks in advance and great work with the class!