title: how to displaying microsoft word content in codeigniter?
body: <p>I am using third party application PHPWord_0.6.2_Beta to displaying microsoft word content in to web page with codeigniter, but I don't find tutorial do that, just find this tutorial who used to create ms word file and writing inside that.</p>
  
  <pre><code>$this-&gt;load-&gt;library('word');
   //our docx will have 'lanscape' paper orientation
  $section = $this-&gt;word-&gt;createSection(array('orientation'=&gt;'landscape'));
  $section-&gt;addText('Hello I am tester');
  $section-&gt;addTextBreak(1);
  $section-&gt;addText('I am inline styled.', array('name'=&gt;'Verdana', 'color'=&gt;'006699'));
  $section-&gt;addTextBreak(1);
  $this-&gt;word-&gt;addFontStyle('rStyle', array('bold'=&gt;true, 'italic'=&gt;true, 'size'=&gt;16));
  $this-&gt;word-&gt;addParagraphStyle('pStyle', array('align'=&gt;'center', 'spaceAfter'=&gt;100));
  $section-&gt;addText('I am styled by two style definitions.', 'rStyle', 'pStyle');
  $section-&gt;addText('I have only a paragraph style definition.', null, 'pStyle');
  $filename='test.docx'; //save our document as this file name
  header('Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document'); //mime type
  header('Content-Disposition: attachment;filename="'.$filename.'"'); //tell browser what's the file name
  header('Cache-Control: max-age=0'); //no cache
  $objWriter = PHPWord_IOFactory::createWriter($this-&gt;word, 'Word2007');
  $objWriter-&gt;save('php://output');
  </code></pre>
  
  <p>how to displaying microsoft word content into web page in codeigniter?</p>