Activity for Rom

  • Rom Rom modified a comment on discussion Help

    Finally I've found the solution! The problem was (again) $y1+=40. So I replace my 'else' by a 'if': if ($y1 > ymax){ ... ... } and I put$y1+=40 before that if! So it works! Thanks cs2912 for your grateful help :)

  • Rom Rom posted a comment on discussion Help

    Finnaly I've found the solution! The problem was 'again' $y1+=40. So I replace my 'else' by a 'if': if ($y1 > ymax){ ... ... } and I put$y1+=40 before that if! So it works! Thanks cs2912 for your grateful help :)

  • Rom Rom modified a comment on discussion Help

    Yeah, I think it's my code too, but I've a value for "$sizeY", it's 7. That value never change But for me, 230 is the bottom of the page and the last cell of the page. I add 40 after my loops, so y = 270 and I do '270+7-240=37 so I'm on the top of the following page

  • Rom Rom posted a comment on discussion Help

    Yeah, I think it's my code too, but I've a value for "$sizeY", it's 7. But for me, 230 is the bottom of the page and the last cell of the page. I add 40 after my loops, so y = 270 and I do '270+7-240=37 so I'm on the top of the following page

  • Rom Rom modified a comment on discussion Help

    This is not an occasional content, it's the first of the 2 nd page and/or the last of that page and the first of the third page etc. In fact, it depends to the values of $ymin, $ymax. Sometimes, the first content doesn't appears, sometimes it's the last element of that page. Isn't an issue of content because if I modify my SQL request, for exemple change my 'ORDER BY', the content who wasn't here is now printed (in another location). I've tried to do an 'print_r($rows)' and it works, I think it's...

  • Rom Rom posted a comment on discussion Help

    This is not an occasional content, it's the first of the 2 nd page and/or the last of that page and the first of the third page etc. In fact, it depends to the values of $ymin, $ymax. Sometimes, the first content doesn't appears, sometimes it's the last element of that page. Isn't an issue of content because if I modify my SQL request, for exemple change my 'ORDER BY', the content who wasn't here is now printed (in another location). I've tried to do an 'print_r($rows)' and it works, I think it's...

  • Rom Rom modified a comment on discussion Help

    Now, I automate loops. I have $ ymin = 0; $ymax = 230; $ y1 = 30; $shift=0; So now I do only one loop for all the pages `while ($rows = odbc_fetch_object($result1)) { $pdf->SetFont('times', '', 8, '', true); if ($y1>=$ymin && $y1<=$ymax){ $pdf->SetXY($x1, $y1-$shift); $pdf->MultiCell($sizeX1, $sizeY, "$rows->name", 1, "L", 0); $pdf->SetXY($x1, $y1+$sizeY-$shift); etc. } else { //New page $ymin+=230; $ymax+=230; $shift+=240; $pdf->AddPage(); } $y1+=40; } ` But I have again an issue: In fact, one of...

  • Rom Rom modified a comment on discussion Help

    Now, I automate loops. I have $ ymin = 0; $ymax = 230; $ y1 = 30; $shift=0; So now I do only one loop for all the pages `while ($rows = odbc_fetch_object($result1)) { $pdf->SetFont('times', '', 8, '', true); if ($y1>=$ymin && $y1<=$ymax){ $pdf->SetXY($x1, $y1-$shift); $pdf->MultiCell($sizeX1, $sizeY, "$rows->name", 1, "L", 0); $pdf->SetXY($x1, $y1+$sizeY-$shift); etc. } else { //New page $ymin+=230; $ymax+=230; $shift+=240; $pdf->AddPage(); } $y1+=40; } ` But I have again an issue: In fact, one of...

  • Rom Rom modified a comment on discussion Help

    Now, I automate loops. I have $ ymin = 0; $ymax = 230; $ y1 = 30; $shift=0; So now I do only one loop for all the pages `while ($rows = odbc_fetch_object($result1)) { $pdf->SetFont('times', '', 8, '', true); if ($y1>=$ymin && $y1<=$ymax){ $pdf->SetXY($x1, $y1-$shift); $pdf->MultiCell($sizeX1, $sizeY, "$rows->name", 1, "L", 0); $pdf->SetXY($x1, $y1+$sizeY-$shift); etc. } else { //New page $ymin+=230; $ymax+=230; $shift+=240; $pdf->AddPage(); } $y1+=40; } ` But I have again an issue: In fact, one of...

  • Rom Rom modified a comment on discussion Help

    Now, I automate loops. I have $ ymin = 0; $ymax = 230; $ y1 = 30; $shift=0; So now I do only one loop for all the pages `while ($rows = odbc_fetch_object($result1)) { $pdf->SetFont('times', '', 8, '', true); if ($y1>=$ymin && $y1<=$ymax){ $pdf->SetXY($x1, $y1-$shift); $pdf->MultiCell($sizeX1, $sizeY, "$rows->name", 1, "L", 0); $pdf->SetXY($x1, $y1+$sizeY-$shift); etc. } else { //New page $ymin+=230; $ymax+=230; $shift+=240; $pdf->AddPage(); } $y1+=40; } ` But I have again an issue: In fact, one of...

  • Rom Rom posted a comment on discussion Help

    Now, I automate loops. I have $ ymin = 0; $ymax = 230; $ y1 = 30; $shift=0; `while ($rows = odbc_fetch_object($result1)) { //parcours des résultats de la requete SQL $pdf->SetFont('times', '', 8, '', true); if ($y1>=$ymin && $y1<=$ymax){ $pdf->SetXY($x1, $y1-$shift); $pdf->MultiCell($sizeX1, $sizeY, "$rows->name", 1, "L", 0); $pdf->SetXY($x1, $y1+$sizeY-$shift); etc. } else { //New page $ymin+=230; $ymax+=230; $shift+=240; $pdf->AddPage(); } $y1+=40; } ` But I have again an issue: In fact, one of...

  • Rom Rom modified a comment on discussion Help

    Thanks so much CS! It works! The problem was the location of $y1+=40; ! No, I only change font for the differents values and for more clarity. :) I had just forgotten to write 'setfont' for the second page on my exemple Again, thanks a lot!

  • Rom Rom posted a comment on discussion Help

    Thanks so much CS! It works! No, I only change font for the differents values and for more clarity. :) I had just forgotten to write 'setfont' for the second page on my exemple Again, thanks a lot!

  • Rom Rom modified a comment on discussion Help

    Hi! Sorry for not responding earlier, I have not received notifications :/ So, a bit of my code: Note: I'm using ODBC to connect at my database When I get to the bottom of page 1( y= approximately 250), I make an "Add Page" and then I subtract 200 to Y so that the position arrives at the top of page 2. while ($rows = odbc_fetch_object($result1)) { $pdf->SetFont('times', '', 8, '', true); if ($y1<231){ //to the bottom of the page $pdf->SetXY($x1, $y1); $pdf->SetFont('times', 'B', 10, '', true); $pdf->MultiCell($sizeX1,...

  • Rom Rom modified a comment on discussion Help

    Hi! Sorry for not responding earlier, I have not received notifications :/ So, a bit of my code: Note: I'm using ODBC to connect at my database When I get to the bottom of page 1( y= approximately 250), I make an "Add Page" and then I subtract 200 to Y so that the position arrives at the top of page 2. while ($rows = odbc_fetch_object($result1)) { $pdf->SetFont('times', '', 8, '', true); if ($y1<231){ //to the bottom of the page $pdf->SetXY($x1, $y1); $pdf->SetFont('times', 'B', 10, '', true); $pdf->MultiCell($sizeX1,...

  • Rom Rom modified a comment on discussion Help

    Hi! Sorry for not responding earlier, I have not received notifications :/ So, a bit of my code: Note: I'm using ODBC to connect at my database When I get to the bottom of page 1( y= approximately 250), I make an "Add Page" and then I subtract 200 to Y so that the position arrives at the top of page 2. while ($rows = odbc_fetch_object($result1)) { $pdf->SetFont('times', '', 8, '', true); if ($y1<231){ //to the bottom of the page $pdf->SetXY($x1, $y1); $pdf->SetFont('times', 'B', 10, '', true); $pdf->MultiCell($sizeX1,...

  • Rom Rom modified a comment on discussion Help

    Hi! Sorry for not responding earlier, I have not received notifications :/ So, a bit of my code: Note: I'm using ODBC to connect at my database When I get to the bottom of page 1( y= approximately 250), I make an "Add Page" and then I subtract 200 to Y so that the position arrives at the top of page 2. while ($rows = odbc_fetch_object($result1)) { $pdf->SetFont('times', '', 8, '', true); if ($y1<231){ //to the bottom of the page $pdf->SetXY($x1, $y1); $pdf->SetFont('times', 'B', 10, '', true); $pdf->MultiCell($sizeX1,...

  • Rom Rom modified a comment on discussion Help

    Hi! Sorry for not responding earlier, I have not received notifications :/ So, a bit of my code: Note: I'm using ODBC to connect at my database When I get to the bottom of page 1( y= approximately 250), I make an "Add Page" and then I subtract 200 to Y so that the position arrives at the top of page 2. while ($rows = odbc_fetch_object($result1)) { $pdf->SetFont('times', '', 8, '', true); if ($y1<231){ //to the bottom of the page $pdf->SetXY($x1, $y1); $pdf->SetFont('times', 'B', 10, '', true); $pdf->MultiCell($sizeX1,...

  • Rom Rom modified a comment on discussion Help

    Hi! Sorry for not responding earlier, I have not received notifications :/ So, a bit of my code: Note: I'm using ODBC to connect at my database When I get to the bottom of page 1( y= approximately 250), I make an "Add Page" and then I subtract 200 to Y so that the position arrives at the top of page 2. while ($rows = odbc_fetch_object($result1)) { $pdf->SetFont('times', '', 8, '', true); if ($y1<231){ //to the bottom of the page $pdf->SetXY($x1, $y1); $pdf->SetFont('times', 'B', 10, '', true); $pdf->MultiCell($sizeX1,...

  • Rom Rom posted a comment on discussion Help

    Hi! Sorry for not responding earlier, I have not received notifications :/ So, a bit of my code: Note: I'm using ODBC to connect at my database When I get to the bottom of page 1( y= approximately 250), I make an "Add Page" and then I subtract 200 to Y so that the position arrives at the top of page 2. while ($rows = odbc_fetch_object($result1)) { $pdf->SetFont('times', '', 8, '', true); if ($y1<231){ //to the bottom of the page $pdf->SetXY($x1, $y1); $pdf->SetFont('times', 'B', 10, '', true); $pdf->MultiCell($sizeX1,...

  • Rom Rom posted a comment on discussion Help

    Hi everybody! I work with TCPDF and I want to display cells. For that, I use 'multicell()', it's works. But when I add a page, the last cell on the precedent page appears on the top of the other page, it's a duplicate, I don't understand why. If someone has an idea it would be great Thanks

1
MongoDB Logo MongoDB