I am having a hard time to get this done, what I need is, print a contract that is on my database, when I say print, is physical printing.
I can access the content I want to print using this
<?php echo @$contrato['Content']['text']; ?>
but I don't what else to do, like, get this info, save to a temp file and then open and print? I'm lost.
I know if I use:
<script>window.print()</script>
it will print the entire page, which I don`t want, I would like to print just what that php code brings me.