Yes, but I thought you already solved that :)

Some request param would be nice

www.yourhost/controller/action/format/excel

Regards,
Saša Stamenković


On Tue, Dec 8, 2009 at 10:19 AM, Саша Стаменковић <[email protected]>wrote:

> Have you tried:
>
>  $paginator->setItemCountPerPage($paginator->getTotalItemCount())
>
> in excel context.
>
> Thats the first thing coming to my mind.
>
> Regards,
> Saša Stamenković
>
>
>
> On Tue, Dec 8, 2009 at 9:52 AM, scs <[email protected]> wrote:
>
>> Hi,
>> I have an html report that has paging. It list 100 records in every page.
>> I added an excel report to this action and need to disable the paging
>> feature
>> in excel output/context.
>>
>> But I am not sure if there is a better way.
>>
>> Something like this or a better way? :
>> //get format param from request
>> ...
>> if ($format != 'excel') {
>>    $page=$this->_getParam('page', 1);
>>    $paginator = Zend_Paginator::factory($rows);
>>    $paginator->setItemCountPerPage(100);
>>    $paginator->setCurrentPageNumber($page);
>>
>>    $this->view->applications = $paginator;
>> } else {
>>    $this->view->applications = $rows;
>> }
>>
>> Thanks
>> scs
>>
>
>

Reply via email to