Cool, I didn't know it was possible.
Cheers for that I'll give it a go.

> Taco,
>       What I do is open a new page with the records on it.  I put a print
> and close in the body tag ie <body
> onLoad="javascript:window.print();window.close();">
> 
> Then on the page to be printed use the BR.page style to force a page break.
> 
> Put the following inside your head tags
> 
> <style>
> BR.page{page-break-after:always}
> </style>
> 
> To call a page break use
> 
> <BR style="page-break-after:always;">
> 
> So the idea is you loop through each record, display it and do the <BR
> style="page-break-after:always;"> after the record is displayed.  For 3
> records you would have
> 
> record1 info
> <BR style="page-break-after:always;">
> record2 info
> <BR style="page-break-after:always;">
> record3 info
> <BR style="page-break-after:always;">
> 
> The javascript in the body tag will display a print dialog box and then
> close the window after the users press's print.
> 
> Hope this Helps
> 
> Brian Knott
> 
> 
> 
> 
> -----Original Message-----
> From: Taco Fleur [mailto:[EMAIL PROTECTED]
> Sent: Monday, 14 July 2003 11:06 AM
> To: CFAussie Mailing List
> Subject: [cfaussie] [OT] Print multiple A4s with JS
> 
> 
> I have a page with search results, each record has a checkbox, when for
> example 10 of these are ticked and a button print is clicked I would like
> it to go and print all 10 selected records.
> 
> Tricky thing is:
> Each record fits on a A4, if I would create all 10 records on 1 page I'm
> sure that at some stage during printing they will not fit on one A4
> anymore, if that makes any sense? But if printed page by page i.e. print
> is called 10 times it does all fit.
> 
> TIA
> Taco
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> 
> MX Downunder AsiaPac DevCon - http://mxdu.com/

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to