• Have something to say? Register Now! and be posting in minutes!

Printing multiple HTML documents with page breaks between

DonMan

Well-Known Member
4,018
1,680
173
Joined
Sep 8, 2014
Hoopla Cash
$ 1,000.00
Fav. Team #1
Fav. Team #2
Fav. Team #3
I'm doing work for a client where he prints documents that typically fit on one page. When they print one document at a time, the app just displays the HTML for the printed page in a window, and the user prints the contents of that window.

We've recently made changes where they can print batches of documents. The logic for printing each individual page hasn't changed. So the window with the print contents now looks something like this:

HTML
blah blah blah
/HTML
P page-break-before=always
HTML
blah blah blah
/HTML
....

For some reason, all of the pages except the first have less of a margin on the top. Looking at the CSS, the margins are specified in the class that is used for the BODY tag for each HTML page.

Any ideas as to how to correct this problem?
 

DetroitDevil

Consoles are for ages 3 and up & broke adults.
Supporting Member Level 2
54,354
20,033
1,033
Joined
Sep 19, 2016
Hoopla Cash
$ 7,500.00
Fav. Team #1
Fav. Team #2
Fav. Team #3
try removing the heading/titles from the first page... the continuing printed pages likely dont have heading/titles. sounds like a lot of work automating it for some shitheads hissyfit.
 

DonMan

Well-Known Member
4,018
1,680
173
Joined
Sep 8, 2014
Hoopla Cash
$ 1,000.00
Fav. Team #1
Fav. Team #2
Fav. Team #3
that's one of the odd things about this - the heading portion of the HTML for all the pages, including the first, is identical.
they discovered the problem is worse on some printers and just don't use those printers for this.

these "shitheads" average about 200 invoices a day (about $15K sales) , so being able to print them in batches instead of individually probably saves somebody at least an hour a day.
 

DetroitDevil

Consoles are for ages 3 and up & broke adults.
Supporting Member Level 2
54,354
20,033
1,033
Joined
Sep 19, 2016
Hoopla Cash
$ 7,500.00
Fav. Team #1
Fav. Team #2
Fav. Team #3
that's one of the odd things about this - the heading portion of the HTML for all the pages, including the first, is identical.
they discovered the problem is worse on some printers and just don't use those printers for this.

these "shitheads" average about 200 invoices a day (about $15K sales) , so being able to print them in batches instead of individually probably saves somebody at least an hour a day.
Maybe they should invest some of that cheddar into a programmer to create an application to solve their problem.
 
Top