Page 1 of 1

Print Scripts

Posted: Thu Jan 05, 2006 7:11 pm
by stebut05
Hi all,

Hope someone can help pretty plz. I need to run a print script to print multiple records, but on seperate pages, is this possible??? if so, any ideas how to do it?? thanks for any help and advice given

Regards,

Steven

Posted: Thu Jan 05, 2006 7:28 pm
by feyd
most reliable way: generate a PDF.

Posted: Thu Jan 05, 2006 7:38 pm
by RobertGonzalez
I have done this using CSS. Wrap each record you want on a new page inside a <p class="new_page"></p> tag set. Then add this to your CSS...

Code: Select all

p.new_page {
	page-break-before: always;
	text-align: center;
}
Everything wrapped in that styled <p> tag will appear on a new page (and centered, so modify that attribute and value if you don't want it that way).

Posted: Thu Jan 05, 2006 7:40 pm
by feyd
hopefully the browser supports that setting ;)

Posted: Thu Jan 05, 2006 7:43 pm
by RobertGonzalez
Yeah, I know it's wishful thinking. Of course, FireFox supports it so almost everypage that I use that CSS on is referred by a page that I put a "Get FireFox" plug of some sort on.

Posted: Fri Jan 06, 2006 6:00 am
by Jenk
plugs are often ignored, along with banners :P

Users are more likely to just click back when the site doesn't "work" because they are not using the same browser as the developer :P