By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,614 Members | 1,674 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,614 IT Pros & Developers. It's quick & easy.

Detect Middle of Page and push content to next page

dlite922
Expert 100+
P: 1,584
Hey Wsup guys,

got a problem that right now i'm just scratching my head at.

I have a dynamic receipt/invoice that USUALLY (99%) of the time takes up Half of the page at most.

My clients wants to have TWO copies on the same page. He's got a special printer and paper where the page the 8.5" x 11" standart letter pager is cut in half across the middle from left to right, horizontally.

I've seen with CSS you can push the content to the next page,
How can i apply this to method where the middle of the page is "detected".

If it ever happen to cross the middle of the page, it would print on separte pages.

Does this make sense?

Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3.  
  4. // Example 1: Content is less than half of page:
  5. __________
  6. [         ]
  7. [ asdfadf ]
  8. [     $4 ]
  9. [     $6 ]
  10. [__________]
  11. [         ]
  12. [ asdfadf ]
  13. [     $4 ]
  14. [     $6 ]
  15. [__________]
  16.  
  17. // Example 2: Content is More Than a Half a Page Long: 
  18. __________     __________
  19. [         ] [         ] 
  20. [ asdfasdf ] [ asdfasdf ] 
  21. [         ] [         ] 
  22. [ asdfasdf ] [ asdfasdf ] 
  23. [         ] [         ] 
  24. [ asdfasdf ] [ asdfasdf ] 
  25. [         ] [         ] 
  26. [     $4 ] [     $4 ]
  27. [     $5 ] [     $5 ]
  28. [__________] [__________]
  29.  
  30. // Hopefully the above shows monospace. 
  31.  
  32.  
  33.  
Feb 14 '08 #1
Share this Question
Share on Google+
1 Reply


dlite922
Expert 100+
P: 1,584
monospace........NOOOOOOOT!!!

sorry but hopefully you get the point.
Feb 14 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.