...

View Full Version : print



eriyanto
06-10-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..

chrismiceli
06-10-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
window.print();

eriyanto
06-10-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)

brothercake
06-10-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" ...

eriyanto
06-11-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...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum