I think that many of us have run into a similar problem at some point. We 
came up with a solution, not a pretty solution but a solution nevertheless, 
by using iText (http://www.lowagie.com/iText/). We were required to print 
out event invitations to pre-formatted cards from the browser. It was a very 
difficult task trying to use CSS to do what we wanted since different 
printers were calibrated differently data on the sheets were always skewed.
What we came up with was this:

1. We created a PDF form as described in the first part of the following 
article (http://www.worlddesign.com/index.cfm/rd/cf/PDFForms.htm). The 
fields were named the same as the columns  of the query concatenated with a 
row number, so if your query returned columns emp_id, emp_fname, emp_lname 
the form fields would be named emp_id1, emp_fname1, emp_lname1 etc.. We were 
printing 8 cards per page (2 columns x 4 rows)

2. The query to populate the cards was retrieved.

3. We calculated the number of pages, then looped over the query and created 
the pages 'stamped' with the data using a custom implementation of iText.

4. We returned the generated PDF to the browser for printing.

We couldn't use auto generated PDF's since the positioning was crucial to 
us. I would suggest looking at http://cfregex.com/cfcomet/pdf/.

If you would like to see some sample code send me an email at 
[EMAIL PROTECTED]

HTH

Best Regards,
Donnie Bachan
Phone: (718) 217-2883
Website: http://www.islandwizards.com
Blog: http://angrytrini.blogspot.com
"Nitendo Vinces - By Striving You Shall Conquer"


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189732
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to