There is no better way. It's the behaviour of the internet on printing pages. If you want it perfect, you have to download the order via api and format the output in a reporting program. MS Access will do the job also for you, but you need some programmer skills.
Not many sites do this but it is possible to force a specific CSS for printing.
For example <link rel="stylesheet" href="print.css" type="text/css" media="print" /> - this would only be loaded by the browser when someone prints a page.
The good thing about having a separate CSS is that you can use display: none to hide all sorts of superfluous containers and essentially just leave the list behind.
Oh I see. You could perhaps add an empty <DIV> with the "page-break-before: always" style within every 10th (or whatever) row of the table. You'd need to use "display: none" for this DIV in the normal CSS file. You might need to include a "display: block" with the "page-break-before" bit.
Well until ya perhaps get it sorted i downloaded firefox and its breaks the tables on its own. It also prints the sorting dropdown but hey... i can love with it.
Perhaps a temp solution for now lol. ok.. back to chrome.
It is really very difficult to guess where the pagebreak will be. We normally use the page size A4 and the US standard is letter, I guess. So the size of the paper can differ between countries.
I thought I would update this to say I spent another two hours on the issue and I'm unable to resolve it on chrome. It seems that chrome it's just awful at printing tables. The page prints fine in Firefox or Internet Explorer.
If you're using Chrome, you can select Print Using System Dialog at the bottom of the left pane. Or you can just press CTRL+SHIP+P and it will bring up the system dialog instead of the Chrome dialog. It's been working well for me.
Or you can just use Firefox.
@Admin It's not worth trying to program around Chrome printing. They just pretty much parse pages however they want and expect web developers to design their sites around Chrome (as far as I understand it, anyway).
@Loremonger It's a bit annoying, I built the site in Chrome, but you can't print pick lists in Chrome. Do let me know if there are any styling issues in Firefox, I fixed a few button heights the other day,
I use FireFox 99% of the time. The only odd thing I have seen is when I click "add" for typing in the tracking number. There is no "X" in that window to close the window. There is still a box in the top right corner and the window does close if I use it, just no "X".
I have noticed this a long time ago, just doesn't bother me at all, but since you asked I figured I would chime in.
Oh and when people send messages the message wraps by the letter and not the word. So words are chopped in half in the private messaging system.
Comments
Frank
For example <link rel="stylesheet" href="print.css" type="text/css" media="print" /> - this would only be loaded by the browser when someone prints a page.
The good thing about having a separate CSS is that you can use display: none to hide all sorts of superfluous containers and essentially just leave the list behind.
Perhaps a temp solution for now lol. ok.. back to chrome.
Frank
http://stackoverflow.com/questions/17761646/how-to-achieve-page-break-in-html-table-for-google-chrome
But I'm quite n00bish, so can't say if it would work here.
I print the invoice as 2 pages per page, if it goes over 2 pages I print on back - so in this case it would definately look better.
Also on paper sizes if you default with US Letter it will fit A4 - as A4 is longer
Or you can just use Firefox.
@Admin It's not worth trying to program around Chrome printing. They just pretty much parse pages however they want and expect web developers to design their sites around Chrome (as far as I understand it, anyway).
I have noticed this a long time ago, just doesn't bother me at all, but since you asked I figured I would chime in.
Oh and when people send messages the message wraps by the letter and not the word. So words are chopped in half in the private messaging system.
Chris