Yii Framework Forum: Export Reports To Pdf - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Export Reports To Pdf Rate Topic: -----

#1 User is offline   jr_jags 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 38
  • Joined: 05-November 12
  • Location:Philippines

Posted 26 January 2013 - 02:12 AM

I have a CGridView in my form using CSqlDataProvider and I want to create an exporting of report in PDF, I have tried yii-pdf using htmlpdf but when I use:

$mPDF1->WriteHTML($this->renderPartial('index', array(), true));

It didnt save a PDF file.

Are there any good tutorials for beginners in making pdf reports in yii?
0

#2 User is offline   Liam Carter 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 30-August 12

Posted 28 January 2013 - 03:22 PM

Hiya.

I personally use TCPDF. I use an external generator that i pass information to.

But as a start you can use the Yii TCPDF extension

Yii TCPDF extension

Regards

Liam
1

#3 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,016
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 29 January 2013 - 03:33 PM

With my pdfable extension you can render views as PDF. But it requires wkhtmltopdf to be installed.
1

Share this topic:


Page 1 of 1
  • 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