/aspnet_client/system_web/2_0_50727/CrystalReportWebFormViewer3/html/crystalprinthost.html
http://github.com/khaneh/Orders · HTML · 86 lines · 12 code · 0 blank · 74 comment · 0 complexity · d172827db50b4aca94aba953ebcfe8f2 MD5 · raw file
- <HTML>
- <HEAD>
- <TITLE>Crystal Reports Viewer</TITLE>
- <SCRIPT language="Javascript" src="../js/print.js"></SCRIPT>
- <SCRIPT FOR="CrystalPrintControl" EVENT="Finished(status, statusText)" LANGUAGE="Javascript">
- <!--
- window.close();
- -->
- </SCRIPT>
- </HEAD>
- <BODY onload="checkUserCancelledInstallation(document.getElementById('CrystalPrintControl'))" onBeforeUnload="cancelPrinting(document.getElementById('CrystalPrintControl'))">
- <SCRIPT LANGUAGE="Javascript">
- <!--
- var objectTag = "<OBJECT ID=\"CrystalPrintControl\" CLASSID=\"CLSID:BAEE131D-290A-4541-A50A-8936F159563A\" CODEBASE=\"";
- objectTag += "/PrintControl.cab"; //window.dialogArguments.codebase; this line changed by pooya to let cab file download localy!
- objectTag += "#Version=";
- objectTag += IE_PRINT_CONTROL_PRODUCTVERSION;
- objectTag += "\" VIEWASTEXT>";
-
- if (window.dialogArguments.url) {
- objectTag +="<PARAM NAME=\"URL\" VALUE=\"";
- objectTag += window.dialogArguments.url;
- objectTag += "\">";
- }
-
- if (window.dialogArguments.postbackdata) {
- objectTag += "<PARAM NAME=\"PostBackData\" VALUE=\"";
- objectTag += window.dialogArguments.postbackdata;
- objectTag += "\">";
- }
-
- if (window.dialogArguments.title) {
- objectTag +="<PARAM NAME=\"Title\" VALUE=\"";
- objectTag += window.dialogArguments.title;
- objectTag += "\">";
- }
-
- if (window.dialogArguments.maxpage) {
- objectTag +="<PARAM NAME=\"MaxPageNumber\" VALUE=\"";
- objectTag += window.dialogArguments.maxpage;
- objectTag += "\">";
- }
-
- if (window.dialogArguments.pageorientation) {
- objectTag +="<PARAM NAME=\"PageOrientation\" VALUE=\"";
- objectTag += window.dialogArguments.pageorientation;
- objectTag += "\">";
- }
-
- if (window.dialogArguments.papersize) {
- objectTag +="<PARAM NAME=\"PaperSize\" VALUE=\"";
- objectTag += window.dialogArguments.papersize;
- objectTag += "\">";
- }
-
- if (window.dialogArguments.drivername) {
- objectTag +="<PARAM NAME=\"PrinterDriverName\" VALUE=\"";
- objectTag += window.dialogArguments.drivername;
- objectTag += "\">";
- }
-
- if (window.dialogArguments.usedefprinter) {
- objectTag +="<PARAM NAME=\"UseDefaultPrinter\" VALUE=\"";
- objectTag += window.dialogArguments.usedefprinter;
- objectTag += "\">";
- }
-
- if (window.dialogArguments.usedefprintersettings) {
- objectTag +="<PARAM NAME=\"UseDefaultPrinterSettings\" VALUE=\"";
- objectTag += window.dialogArguments.usedefprintersettings;
- objectTag += "\">";
- }
-
- if (window.dialogArguments.sendpostdataonce) {
- objectTag +="<PARAM NAME=\"SendPostDataOnce\" VALUE=\"";
- objectTag += window.dialogArguments.sendpostdataonce;
- objectTag += "\">";
- }
-
- objectTag += "</OBJECT>";
- //alert(objectTag);
- document.writeln(objectTag);
- -->
- </SCRIPT>
- </BODY>
- </HTML>