Welcome Guest, Not a member yet? Register   Sign In
TCPDF Generate incomplete page (Need help fast)))

(02-07-2018, 04:16 AM)InsiteFX Wrote: Did you try unset on $key and $key2 ?

Newer versions of PHP do not reset the foreach variables.

Read the PHP foreach documentation on php.net

hey i just read the foreach documentation, did you mean unset() syntax? i think the iteration just fine, because when i iterate with TCPDF syntax on the view (e.g $pdf->SetCreator().... etc) and if the status column from DB is 0 - 3 the page is stop generating in various place, but if i erase all TCPDF syntax and leave only foreach iteration the view is printed perfectly even the status 0 - 3, which means the foreach is working just fine but TCPDF is not, what do you think?

(02-07-2018, 11:21 AM)php_rocs Wrote: @Akihiko,

    Also, have you dumped out the $tmp array to make sure that the data is correct in both instances?  Exactly where does the PDF stop in it's generation of the page?

Yes, i already try print the page without TCPDF syntax and it printed fine, if the status column on DB is 3, the table generated with only one incomplete row so the jumlah, harga, subtotal on that row is not printed with the rest of barang on that table, when the status column is 2 or 1 the PDF just generated till barang: without table below it, if the status colum on DB is 0 the PDF generated nothing just white PDF page, what do you think?

Messages In This Thread
RE: TCPDF Generate incomplete page (Need help fast))) - by Akihiko - 02-10-2018, 04:43 PM

Theme © iAndrew 2016 - Forum software by © MyBB