Menu

Blank .sxw document generated

Help
2005-04-29
2013-04-17
  • Nobody/Anonymous

    I installed PHP DocWriter as instructed but keep getting blank documents.

    My setup is as follows:
    - Red Hat 9
    - XAMPP for Linux 1.4.12
    http://www.apachefriends.org/en/xampp.html
    - PHP version 5.0.3
    - OpenOffice not installed.

    Here is my code:
    <?php
    require_once('phpdocwriter/lib/include.php');
    import('phpdocwriter.pdw_document');

    $sxw = new pdw_document;

    $sxw->SetLanguage('en', 'US');
    $sxw->SetStdFont('Times New Roman', 10);
    $sxw->Write('Hello World!');

    $sxw->Output();
    ?>

    I can download the document.sxw file but it's a blank document; I am not getting the "Hello World!" that should be there.

    Could it be that this program is not compatible with PHP5?

     
    • Jose Manuel Sanchez Rivero

      Hi,

      The xml library version that comes with the last version of PHP DocWriter (ActiveLink XML 0.34) does not work well with PHP5.

      You can try to download the new version of ActiveLink (0.4) from http://www.active-link.com/software/ and replace the old one that comes with PHP DocWriter.

      It is reported that the new one works well with PHP5, and this could be a temporary solution until the new version will be released.

      Regards,
      Jose Manuel.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.