-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Html reader, with rowspan + colspan + style #205
Conversation
- Replacing private by protected, when you want to extends its too annoying - error at line 129, function strpos(string $haystack , mixed $needle) - add rowspan and colspan - add style (very very slow when used, use function applyFromArray), works only for alignment / numberformat (example: td{vertical-align:middle;phpexcel-number-format-code:"$#,##0.00;($#,##0.00)"})/ indent => see class CssPhpExcelTranslator.php - function autosize added and commented (working, need to be optional) Class CssPhpExcelTranslator : - transform all css to array style form phpExcel - works only for few css, need to be fill up Class CssParser : - parse all css to array Class PhpExcelStyle : - give more flexibility for the futur if we need more than an arrayStyle for phpExcel
- comment
I added require_once but I'm not sure if it will work, i use those files with namespace in Symfony2, so I'm not an expert with autoloader. Everything is already done in Sf2, hihi :) |
Thanks. Interesting changes.... The rowspan and colspan was always on my "to do" list; and it looks as though you've cleaned up a lot of the existing code. I'll take a closer look at them later: I'm busy at the moment working on converting the develop_2.0.0 branch for namespacing; but I certainly appreciate the changes, and will look to merge them into that branch once I've tested all my namespace changes. That branch will also use protected rather than private to make the classes more easily extensible by the weekend. |
Unfortunately, that's likely to make it a manual merge :( |
Very nice work, @cifren! I have cloned your repo and put down one test sample to check how it works. Consider this table
As you can see, first and third row are okay, but second row isn't. |
I didn't know about 'rowspan and colspan are used together'... and for the issue with Excel 2010, i think i generated files via Excel5 writer and the message diseappeared (if we talk about the same message, 'verify if the file is not corrupted...', same message when you try to open a html file with excel2010). I'm sorry but i can't modify anymore because i got rid of phpExcel in our project, it was too slow almost 60sec for apply style and write a file with 1 600 lines. Now i'm creating directly XML files for Excel. I thought it was a better idea to send you the code to improve it, instead of throw it away. ;) (i'm sorry i also reformated all the code with netbeans... hard merge...) |
Integrated manually for the merge cells, and fixed the issue with rowspan _and_ colspan values for the same cell; thanks for the basic work cifren |
Any idea if this can be fixed? Edit: I interpreted the Travis build fail as meaning @MarkBaker's fix was not merged, but maybe I misread that? |
The travis build fail has nothing to do with this..... a lot of the calculation engine tests fail for various reasons; and while I'm reducing that slowly, it is a slow task. The fix for rowspan and columnspan has been merged into the develop branch. As far as I'm aware, it's fixed, and there is no further need for me to do anything with it. |
Class phpExcelReader :
Class CssPhpExcelTranslator :
Class CssParser :
Class PhpExcelStyle :