This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Control Printing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Control Printing" Watch "Control Printing" New topic
Author

Control Printing

Pankaj Patel
Ranch Hand

Joined: Jul 13, 2006
Posts: 73
Hi.

I am Pankaj Patel and i need your help to overcome this requirement/issue.

I am having one html page and once the page is loaded automatically window:print() is being called.

The html page has 3 section and i need to print every section on a new page. Every section is containing dynamic values, and because of which my page size is not exact fix. Sometime it may increase sometime decrease.

Is there anyway to find, like, this statement will be printed on which page? so that i can give some extra feeds and make it so that it get printed on a new line.

Regards,
Pankaj Patel
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

Hi Pankaj, please CarefullyChooseOneForum for your questions so that you get best response.


SCJP, SCWCD.
|Asking Good Questions|
Pankaj Patel
Ranch Hand

Joined: Jul 13, 2006
Posts: 73
OK. Next time will choose proper forum.

FYI All. I had found the solution for the issue using CSS.

Page 1

 


Page 2

I hope you have understood it.
Pankaj Patel
Ranch Hand

Joined: Jul 13, 2006
Posts: 73
<p/tr/td/tag style="page-break-after: always;" >[/code]
 
GeeCON Prague 2014
 
subject: Control Printing