The code I used was:
// Print content of iframe
function doPrint() {
browser = document.getElementById('browser-preview'); if ( browser.getAttribute('collapsed').search('false') != -1 ) {
// writes content to iframe using document.write()
refreshPreview();
browser.contentWindow.print();
} else {
// write content to frame and set collapsed="false"
renderPreview();
browser.contentWindow.print();
}
}-mark
_______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
