how to generate a pdf in yii using tcpdf

hi, i was just learning how to generate the pdf in yii, and I using the TCPDF in my program, and I have an error condition, but I can handle it, and now I have to use excel to the report. does anyone know how

What is your question about, Excel or PDF?