Total Number of columns in a PAGE

Topics: Developer Forum, User Forum
Aug 19, 2014 at 7:18 AM
Edited Aug 19, 2014 at 7:21 AM
After I have created a spreadsheet using PHPEXCEL, which by the way can contain any number of columns, is there a way to calculate the number of columns there are on the first page(there can be multiple pages in the output file and each page might contain different number of columns as I have used setAutoSize(true)).

Actually my main purpose is to merge all the columns there are on the 1st page 1st row and set some text there as heading.