hi all,<BR> using sample code given in the msdn, i could print one hidden html file to the printer. http://msdn.microsoft.com/workshop/author/script/dhtmlprint_samplecode.asp.But my requirement is that to print multiple hidden html files to the printer.that is i got to check whether which all check boxes are checked and send all checked ones to the printer.I need help very urgently.My project is very time sensitive.<BR>Thanks in advance<BR>George<BR>This is the sample code which i got from the msdn.microsoft.<BR>With this i could print only one file. <BR>if ( printIsNativeSupport() )<BR> window.print2 = window.print;<BR>window.print = printFrame;<BR><BR>// main stuff<BR>function printFrame(frame, onfinish) {<BR> if ( !frame ) frame = window;<BR><BR> function execOnFinish() {<BR> switch ( typeof(onfinish) ) {<BR> case "string": execScript(onfinish); break;<BR> case "function": onfinish();<BR> }<BR> if ( focused && !focused.disabled ) focused.focus();<BR> }<BR><BR> if ( frame.document.readyState !== "complete" &&<BR> !confirm("The document to print is not downloaded yet! Continue with printing?") )<BR> {<BR> execOnFinish();<BR> return;<BR> }<BR><BR> if ( window.print2 ) { // IE5<BR> var focused = document.activeElement; <BR> frame.focus();<BR> if ( frame.print2 ) frame.print2();<BR> else frame.print();<BR> execOnFinish();<BR> return;<BR> }<BR> <BR> var eventScope = printGetEventScope(frame);<BR> var focused = document.activeElement;<BR> <BR> window.printHelper = function() {<BR> execScript("on error resume next: printWB.ExecWB 6, 1", "VBScript");<BR> printFireEvent(frame, eventScope, "onafterprint");<BR> printWB.outerHTML = "";<BR> execOnFinish();<BR> window.printHelper = null;<BR> }<BR> <BR> document.body.insertAdjacentHTML("beforeEnd",<BR> "&#060;object id=\"printWB\" width=0 height=0 <BR> classid=\"clsid:8856F961-340A-11D0-A96B-00C04FD705A2\"&#062;");<BR> <BR> printFireEvent(frame, eventScope, "onbeforeprint");<BR> frame.focus();<BR> window.printHelper = printHelper;<BR> setTimeout("window.printHelper()", 0);<BR>}<BR><BR><BR>// helpers<BR>function printIsNativeSupport() {<BR> var agent = window.navigator.userAgent;<BR> var i = agent.indexOf("MSIE ")+5;<BR> return parseInt(agent.substr(i)) &#062;= 5 && agent.indexOf("5.0b1") &#060; 0;<BR>}<BR><BR>function printFireEvent(frame, obj, name) {<BR> var handler = obj[name];<BR> switch ( typeof(handler) ) {<BR> case "string": frame.execScript(handler); break;<BR> case "function": handler();<BR> }<BR>}<BR><BR>function printGetEventScope(frame) {<BR> var frameset = frame.document.all.tags("FRAMESET");<BR> if ( frameset.length ) return frameset[0];<BR> return frame.document.body;<BR>}<BR>function printHidden(url) {<BR> document.body.insertAdjacentHTML("beforeEnd",<BR> "&#060;iframe name=printHiddenFrame width=0 height=0&#062;&#060;/iframe&#062;");<BR> var doc = printHiddenFrame.document;<BR> doc.open();<BR> doc.write("&#060;body onload=\"parent.onprintHiddenFrame()\"&#062;");<BR > doc.write("&#060;iframe name=printMe width=0 height=0 src=\"" + url + "\"&#062;&#060;/iframe&#062;");<BR> doc.write("&#060;/body&#062;");<BR> doc.close();<BR>}<BR><BR>function onprintHiddenFrame() {<BR> function onfinish() {<BR> printHiddenFrame.outerHTML = "";<BR> if ( window.onprintcomplete ) window.onprintcomplete();<BR> }<BR> printFrame(printHiddenFrame.printMe, onfinish);<BR>}<BR><BR><BR><BR><BR>