PHP Classes

Change the output from Web View to Print View

Recommend this page to a friend!

      MsDoc Generator  >  All threads  >  Change the output from Web View to...  >  (Un) Subscribe thread alerts  
Subject:Change the output from Web View to...
Summary:Change the output from Web View to Print View
Messages:1
Author:Enrique Arroniz
Date:2013-04-10 18:35:17
 

  1. Change the output from Web View to...   Reply   Report abuse  
Picture of Enrique Arroniz 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!