pkotapati Posted August 14, 2007 Share Posted August 14, 2007 I have 40 payslips all are displayed in a page one after other and at the end Print button.If i click the print button each pay slip has to be printed in one page.Plz hely guys Quote Link to comment https://forums.phpfreaks.com/topic/64799-printing-in-a-page/ Share on other sites More sharing options...
Daniel0 Posted August 14, 2007 Share Posted August 14, 2007 I don't think you can control that, you could however make it into a PDF (using PHP) or something like that and then print the PDF. Then you could control it. Quote Link to comment https://forums.phpfreaks.com/topic/64799-printing-in-a-page/#findComment-323264 Share on other sites More sharing options...
walkonet Posted August 14, 2007 Share Posted August 14, 2007 or maby you could set the pay slips up to display one payslip per page with pageination. and have some way to select which payslip you want.... Quote Link to comment https://forums.phpfreaks.com/topic/64799-printing-in-a-page/#findComment-323280 Share on other sites More sharing options...
pkotapati Posted August 16, 2007 Author Share Posted August 16, 2007 Thanks for ur suggestions,Guys any more ideas plz help as my project was stopped with this issue Quote Link to comment https://forums.phpfreaks.com/topic/64799-printing-in-a-page/#findComment-325410 Share on other sites More sharing options...
keeB Posted August 16, 2007 Share Posted August 16, 2007 Your crisis is not our problem. The 2 methods described above are valid solutions. You can't control the way a document prints (unless you specifically craft <br />'s to fill up to the end of the page) Quote Link to comment https://forums.phpfreaks.com/topic/64799-printing-in-a-page/#findComment-325439 Share on other sites More sharing options...
pkotapati Posted August 16, 2007 Author Share Posted August 16, 2007 Daniel0 suggested to convert into PDF format, freindz can any one suggests the URLs which helps me to convert the payslips into PDF format Quote Link to comment https://forums.phpfreaks.com/topic/64799-printing-in-a-page/#findComment-325477 Share on other sites More sharing options...
tibberous Posted August 16, 2007 Share Posted August 16, 2007 Come on guys, this one was easy - it's straight basic css. Just use: page-break-after: always; Set it as a div class, then wrap each payslip in a div with that property. Quote Link to comment https://forums.phpfreaks.com/topic/64799-printing-in-a-page/#findComment-325496 Share on other sites More sharing options...
Daniel0 Posted August 16, 2007 Share Posted August 16, 2007 Come on guys, this one was easy - it's straight basic css. Just use: page-break-after: always; Set it as a div class, then wrap each payslip in a div with that property. Cool, I didn't know about that. Quote Link to comment https://forums.phpfreaks.com/topic/64799-printing-in-a-page/#findComment-325674 Share on other sites More sharing options...
keeB Posted August 16, 2007 Share Posted August 16, 2007 Me neither Quote Link to comment https://forums.phpfreaks.com/topic/64799-printing-in-a-page/#findComment-325775 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.