This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

[closed] Export as Excel File


  1. antoniosemedo
    Member

    When i trie to export my entries as an Excel File nothing hapens!!!
    I can only export as CSV file...

    What can be hapen?

    Thanks

    Posted 16 years ago #
  2. yuniar

    Hi Antonio,

    Is there any error message?
    If not, edit your config.php file, add the code below into the file:

    ini_set("display_errors","1");

    Make sure you put the code after the <?php tag and before the ?> tag.

    Try to export as excel file again. You should receive an error message.
    Please let me know the error message.

    If you don't feel comfortable posting it here, you can email me at yuniar@appnitro.com

    Thanks


    MachForm Founder

    Posted 16 years ago #
  3. antoniosemedo
    Member

    I placed the code in the config.php file as you suggested, but nothing hapens again!!!
    After selecting the export as excell file option a blank page is generated with no error messages!

    Is there any other persons with the same problem?

    Thanks

    Semedo

    Posted 16 years ago #
  4. yuniar

    Hmm.. thats odd. It should display an error message.
    This is the first report regarding this problem.

    I've just sent you an email for more thorough inspection, please check it out.

    Thanks


    MachForm Founder

    Posted 16 years ago #
  5. yuniar

    Just a note. This issue has been solved.


    MachForm Founder

    Posted 16 years ago #
  6. vancoovur
    Member

    I'm having the same problem. How was this problem resolved?

    Posted 16 years ago #
  7. yuniar

    Some files were corrupted during upload. Particularly files under lib/pear/Spreadsheet folder. Try to reupload all files under that folder.

    Also, have you tried adding this code below?

    ini_set("display_errors","1");

    No error message too?


    MachForm Founder

    Posted 16 years ago #
  8. vancoovur
    Member

    The display errors code doesn't work for some reason.
    I replaced all files in lib/pear/Spreadsheet from a fresh zip file extract and submitted a new item to the form but the Excel export still doesn't work.

    Posted 16 years ago #
  9. yuniar

    That's odd. I've just sent you an email for further investigation.


    MachForm Founder

    Posted 16 years ago #
  10. mpivon
    Member

    I get same error. Not a BIG deal since the file still exports to CSV file. And so, you open the file in Excel, and then re-save as CSV.

    Posted 16 years ago #
  11. yuniar

    For those who get this error. Modify your export_entries.php file.
    Around line 220, search for this code:

    $workbook = new Spreadsheet_Excel_Writer();

    Right after that line, add the code below:

    $workbook->setTempDir(DATA_DIR);

    That should fix the issue. If not, just let me know.


    MachForm Founder

    Posted 16 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.