View Full Version : print

Jun 10th, 2003, 04:26 AM
Please help....
i need a javascript function that can return a value when print menu is cancelled, or not. The default window.print() doesn't return any value...help...anyone.....thanks..

Jun 10th, 2003, 04:39 AM
If i remember right, a similar question was brought up a while back and we established there is no way to determine whether or not the user hits cancel or ok when you run

Jun 10th, 2003, 07:21 AM
thanks, how about instant printing (computer doesn't prompt the user for settings) ?
Btw, when i print a table that consist of more than 1 page, the printing goes on, as it is in one page, can javascript detect end of paper and continue printing at second page ?
(problem : sliced tables)

Jun 10th, 2003, 10:10 AM
no, in both cases.

But in the latter case you can cause a print page-break with CSS, although you do have to specify where it is manually:

<table style="page-break-before:always" ...

Jun 11th, 2003, 07:46 AM
So there is also no way to know when a page break happen ???
This surely will make my work a lot harder...
thanks guys...