Welcome Guest, Not a member yet? Register   Sign In
how to html to .doc files? anyone?
#4

[eluser]palZ[/eluser]
I have found two libraries.
http://www.phpclasses.org/browse/package/2763.html
http://www.phpclasses.org/browse/package/2631.html

i have ported the first one to CI:

extract the html_to_doc.inc.php from zip and put in to system/plugins folder.

create new file to_doc_pi.php in system/plugins folder.

Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
function doc_create($html, $filename)
{
    require_once(BASEPATH."plugins/html_to_doc.inc.php");
    $htmltodoc= new HTML_TO_DOC();
    $htmltodoc->createDocFromURL($html, $filename);
}
?>


Finally create test controller doc.php:

Code:
<?php
class Doc extends Controller{
    function Doc(){
        parent::Controller();
    }

    function index(){
        $this->load->plugin('to_doc');
        doc_create('http://google.com', 'google');
    }
}
?>


Messages In This Thread
how to html to .doc files? anyone? - by El Forum - 11-12-2008, 11:53 PM
how to html to .doc files? anyone? - by El Forum - 11-13-2008, 11:00 AM
how to html to .doc files? anyone? - by El Forum - 11-13-2008, 06:03 PM
how to html to .doc files? anyone? - by El Forum - 11-14-2008, 12:23 AM
how to html to .doc files? anyone? - by El Forum - 11-14-2008, 06:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB