Pear Spreadsheet_Excel_Writer question

This is a discussion on Pear Spreadsheet_Excel_Writer question within the PHP Language forums, part of the PHP Programming Forums category; Hi, I am using the Spreadsheet_Excel_Writer module from Pear to generate Excel spreadsheets from my application. Currently I am finding ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-10-2007
Mike Miller
 
Posts: n/a
Default Pear Spreadsheet_Excel_Writer question

Hi,

I am using the Spreadsheet_Excel_Writer module from Pear to generate
Excel spreadsheets from my application. Currently I am finding that
when I create a new excel spreadsheet I get a message when opening the
file saying:

File error: Data may have been lost.

Not sure what this is caused by or how to rectify it. I am trying to
open the excel file with excel 2007.

M

Reply With Quote
  #2 (permalink)  
Old 08-12-2007
petersprc
 
Posts: n/a
Default Re: Pear Spreadsheet_Excel_Writer question

Not sure why, do you need to set the version maybe:

$workbook->setVersion(8);

"This method exists just to access experimental functionality from
BIFF8. It will be deprecated ! Only possible value is 8 (Excel
97/2000). For any other value it fails silently."

http://www.go-pear.org/reference/Spr...thodsetVersion

On Aug 10, 12:07 pm, Mike Miller <mike.a.mil...@gmail.com> wrote:
> Hi,
>
> I am using the Spreadsheet_Excel_Writer module from Pear to generate
> Excel spreadsheets from my application. Currently I am finding that
> when I create a new excel spreadsheet I get a message when opening the
> file saying:
>
> File error: Data may have been lost.
>
> Not sure what this is caused by or how to rectify it. I am trying to
> open the excel file with excel 2007.
>
> M



Reply With Quote
  #3 (permalink)  
Old 08-13-2007
Toby A Inkster
 
Posts: n/a
Default Re: Pear Spreadsheet_Excel_Writer question

Mike Miller wrote:

> File error: Data may have been lost.
>
> Not sure what this is caused by or how to rectify it. I am trying to
> open the excel file with excel 2007.


This isn't necessarily anything to do with PEAR. Search the MS website for
this error message. You'll find that it is produced in response to a
million different vague and untraceable conditions. :-(

Generally a good solution is to open the file in OpenOffice.org Calc,
copy and paste the data into a brand new spreadsheet and then use the new
spreadsheet instead.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 53 days, 11:19.]

PHP Debugging with Style -OR- How I Learned to Stop Worrying and Love the Bug
http://tobyinkster.co.uk/blog/2007/0...ng-with-style/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:47 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0