/aspnet_client/system_web/2_0_50727/CrystalReportWebFormViewer3/html/crystalprinthost.html
HTML | 86 lines | 12 code | 0 blank | 74 comment | 0 complexity | d172827db50b4aca94aba953ebcfe8f2 MD5 | raw file
1<HTML> 2<HEAD> 3<TITLE>Crystal Reports Viewer</TITLE> 4<SCRIPT language="Javascript" src="../js/print.js"></SCRIPT> 5<SCRIPT FOR="CrystalPrintControl" EVENT="Finished(status, statusText)" LANGUAGE="Javascript"> 6<!-- 7window.close(); 8--> 9</SCRIPT> 10</HEAD> 11<BODY onload="checkUserCancelledInstallation(document.getElementById('CrystalPrintControl'))" onBeforeUnload="cancelPrinting(document.getElementById('CrystalPrintControl'))"> 12<SCRIPT LANGUAGE="Javascript"> 13<!-- 14var objectTag = "<OBJECT ID=\"CrystalPrintControl\" CLASSID=\"CLSID:BAEE131D-290A-4541-A50A-8936F159563A\" CODEBASE=\""; 15objectTag += "/PrintControl.cab"; //window.dialogArguments.codebase; this line changed by pooya to let cab file download localy! 16objectTag += "#Version="; 17objectTag += IE_PRINT_CONTROL_PRODUCTVERSION; 18objectTag += "\" VIEWASTEXT>"; 19 20if (window.dialogArguments.url) { 21 objectTag +="<PARAM NAME=\"URL\" VALUE=\""; 22 objectTag += window.dialogArguments.url; 23 objectTag += "\">"; 24} 25 26if (window.dialogArguments.postbackdata) { 27 objectTag += "<PARAM NAME=\"PostBackData\" VALUE=\""; 28 objectTag += window.dialogArguments.postbackdata; 29 objectTag += "\">"; 30} 31 32if (window.dialogArguments.title) { 33 objectTag +="<PARAM NAME=\"Title\" VALUE=\""; 34 objectTag += window.dialogArguments.title; 35 objectTag += "\">"; 36} 37 38if (window.dialogArguments.maxpage) { 39 objectTag +="<PARAM NAME=\"MaxPageNumber\" VALUE=\""; 40 objectTag += window.dialogArguments.maxpage; 41 objectTag += "\">"; 42} 43 44if (window.dialogArguments.pageorientation) { 45 objectTag +="<PARAM NAME=\"PageOrientation\" VALUE=\""; 46 objectTag += window.dialogArguments.pageorientation; 47 objectTag += "\">"; 48} 49 50if (window.dialogArguments.papersize) { 51 objectTag +="<PARAM NAME=\"PaperSize\" VALUE=\""; 52 objectTag += window.dialogArguments.papersize; 53 objectTag += "\">"; 54} 55 56if (window.dialogArguments.drivername) { 57 objectTag +="<PARAM NAME=\"PrinterDriverName\" VALUE=\""; 58 objectTag += window.dialogArguments.drivername; 59 objectTag += "\">"; 60} 61 62if (window.dialogArguments.usedefprinter) { 63 objectTag +="<PARAM NAME=\"UseDefaultPrinter\" VALUE=\""; 64 objectTag += window.dialogArguments.usedefprinter; 65 objectTag += "\">"; 66} 67 68if (window.dialogArguments.usedefprintersettings) { 69 objectTag +="<PARAM NAME=\"UseDefaultPrinterSettings\" VALUE=\""; 70 objectTag += window.dialogArguments.usedefprintersettings; 71 objectTag += "\">"; 72} 73 74if (window.dialogArguments.sendpostdataonce) { 75 objectTag +="<PARAM NAME=\"SendPostDataOnce\" VALUE=\""; 76 objectTag += window.dialogArguments.sendpostdataonce; 77 objectTag += "\">"; 78} 79 80objectTag += "</OBJECT>"; 81//alert(objectTag); 82document.writeln(objectTag); 83--> 84</SCRIPT> 85</BODY> 86</HTML>