Yii Framework Forum: [EXTENSION]eexcelview - Yii Framework Forum

Jump to content

  • (6 Pages)
  • +
  • « First
  • 4
  • 5
  • 6
  • You cannot start a new topic
  • You cannot reply to this topic

[EXTENSION]eexcelview http://www.yiiframework.com/extension/eexcelview/ Rate Topic: ***** 1 Votes

#101 User is offline   kuya1284 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 17-July 12

Posted 19 February 2014 - 03:59 AM

View Postturi, on 18 February 2014 - 02:34 AM, said:

Hi,

This extension works really great with one CGrivView on a page. Is it possible to apply this extension to more than one CGrivView on the same page?

Thanks


Yes. You would do so in the same manner as rendering multiple grids on the same page, which is by passing a different dataProvider object.
0

#102 User is offline   Amjad Khan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 23-November 11

Posted 01 April 2014 - 04:09 AM

Hi,This is my controller code i cannot get the downloaded file in excel using this extension can anyone help me
public function actionExcel() {
        $model=new News('search');
    
               
              
        $this->widget('EExcelView', array(
     'dataProvider'=> $model->search(),
     'title'=>'My CSV File',
     'autoWidth'=>false,
            'grid_mode' => 'export',
            'title' => 'News Analytics',
            'filename' => 'report.xlsx',
            'stream' =>false,
            'exportType' =>'Excel2007',
//	'filter'=>$model,
            'columns' => array(
//		'pkreportid',
                array('header' => 'Sr#',
                    'value' => '$this->grid->dataProvider->pagination->offset + $row+1',
                ),
                array(
                    'header' => 'News Paper Name',
                    'name' => 'fknewspaperid',
                    'value' => '$data->Newspapername->newspapername',
                ),
                'headline',
                'pageno',
                'reportername',
                'city',
                array(
                    'header' => 'Date',
                    'name' => 'reportdate',
                ),
                array(
                    'header' => 'News Analyst',
                    'name' => 'fkuserid',
                    'value' => '$data->User->username',
                ),
            /*
              'fkcityid',
              'reportinggaps',
              'bridginggapsinfo',
              'publicbody',
              'fklawid',
             */
            ),
        ));
       
         Yii::app()->end();

    }

This code just give me a gridview on html page how to export it in excel
0

#103 User is offline   Timur Ramazanov 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 25-December 13
  • Location:Astana, Kazakhstan

Posted 22 April 2014 - 01:30 AM

Hello, is this extension still maintained?
0

#104 User is offline   ghadfrf 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 22
  • Joined: 13-May 14

Posted 17 June 2014 - 05:49 AM

please can anyone tell how to add header,title to the excel sheet using this extension.

I am trying out from two days please help me,i have saw many examples nothing worked out.Help this poor newbie

Thank You In Advance.
0

Share this topic:


  • (6 Pages)
  • +
  • « First
  • 4
  • 5
  • 6
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users