Jump to content

Recommended Posts

Hello all.  I've been using PEAR's Spreadsheet_Excel_Writer for generating spreadsheets, and everything works fine, but there is the limitation that the only images you can insert have to be bitmaps.  This tends to make the filesizes of my spreadsheets enormous! 

 

So is there another excel writer that will allow the insertion of jpgs?

 

Thanks for any help.

Link to comment
https://forums.phpfreaks.com/topic/72366-excel-writer-recommendations/
Share on other sites

I just went down this path and here are the main things I encountered:

 

1.  You can only create a field that is < 255 Characters long

2.  You can create a "TSV" file, but give it an ".xls" extension and excel will open it, even with fields > 255, but you get into the whole " " issue if it's a text or number string, and problems if the string also contains a " in it, etc... If you don't ", then you loose leading and trailing "0's" on numbers, which was a problem in my case.

3.  You can create an ".ods" spreadsheet, and don't have to worry about any of the above, but that only works for OpenOffice, IBM Lotus Symphony, Etc... (Which is fine by me!).  You would still need to open the doc and resave it as .xls.

 

If you need code sample or whatever post.  Or just google .xls class, many are out there, and they are easy to use.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.