Lapinator / odsPhpGenerator

odsPhpGenerator is library writen in PHP for generate OpenDocumentSpreadsheet.
https://odsphpgenerator.lapinator.net/
GNU Lesser General Public License v3.0
6 stars 2 forks source link

Suggestion: Add cell type 'percentage'. #3

Open kikosoft opened 7 years ago

kikosoft commented 7 years ago

I have data that is expressed in percentages, but your ODS doesn't support percentages. Using the string type, like '33%', results in a warning in Excel. I looked into adding the percentage type, but my very simplistic approach failed miserably (I copied the float type and changed it slightly).

Then I looked at the Open Document documentation and found that it was quite 'closed', or, in other words: Not very user friendly. Anyway, trying to get on top of that documentation completely defeats the point of using your package in the first place (I tried to save some time here).

My question to lapinator therefore is: Would you know how to add the percentage type? I would be very grateful!

PS: I'm sorry if I misplaced this suggestion under 'Issues', I am not very familiar with Github.

kikosoft commented 7 years ago

I have now added percentages myself, it wasn't too difficult after all.