Print The Form

hi guys…

can I know how to print the data from form?

this is example for the form that I want to print…

http://wiki.smartjobboard.com/download/attachments/6193448/print-invoice.png?version=1&modificationDate=1362374279000

thank you…

See if this extension is good for you:

http://www.yiiframework.com/extension/printout/

thank you Johnny…I will try it first…

any problems, I will inform…:)

hi…

I already try to add the extension but I guess it didn’t work for me…

either I don’t understand or maybe the way I done it wrong…

anyone can explain to me so that I can understand??

I also try to do LIKE THIS POST, but it is also didn’t work for me…

if you open the link that I given, you will see this code…


'columns'=>array(

        array(

            'name'=>'nama',

            'type'=>'raw',

        ),

        array(

            'name'=>'alamat',

            'type'=>'raw',

        ),

seriously, I don’t understand this part or maybe I don’t understand it at all…

what ‘name’=>‘nama’ and ‘type’=>‘raw’ for?? :blink:

since I not know all about Yii, I hope someone can explain this more detail so that I can’t understand…

thank you…:)

You can print a division like this using the extension

http://www.yiiframework.com/extension/printout/

In view





<?php $this->widget('application.extensions.print.printWidget', array(

                   'printedElement'=>'#idprint',)); 

    ?>


<div id="idprint">


//data for printing


</div>



thank you Aneesh for your reply…:)

I’ll try to do it first…

but I’ve a question…

it is necessary to put hashtag(#) to this “‘printedElement’=>’#idprint’,” ?

Yes. It represents the id of division want to print.

hi Aneesh…

I already try it but it also doesn’t work for me… :(

it error;

what should I do?