How to get border info ?

Topics: Developer Forum, User Forum
Mar 5, 2010 at 4:02 PM


how can i receive border features like left-border, top-border etc.

example: $objUser->getActiveSheet()->getStyle("A2")->getBorders()->getTop()->getColor()->getRGB();

i wanna do something like this but with borders.

I wanna check if A1:H10 have allborders set or just to display which border was used.

i tried this$objUser->getActiveSheet()->getStyle("A2")->getBorders()->getAllBorders();

but doesnt work.

Mar 16, 2010 at 7:24 AM

Yeah, I'm afraid you will have to check each cell in the selection one at a time for top, right, bottom, and left border components.