/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

  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. <!--
  7. window.close();
  8. -->
  9. </SCRIPT>
  10. </HEAD>
  11. <BODY onload="checkUserCancelledInstallation(document.getElementById('CrystalPrintControl'))" onBeforeUnload="cancelPrinting(document.getElementById('CrystalPrintControl'))">
  12. <SCRIPT LANGUAGE="Javascript">
  13. <!--
  14. var objectTag = "<OBJECT ID=\"CrystalPrintControl\" CLASSID=\"CLSID:BAEE131D-290A-4541-A50A-8936F159563A\" CODEBASE=\"";
  15. objectTag += "/PrintControl.cab"; //window.dialogArguments.codebase; this line changed by pooya to let cab file download localy!
  16. objectTag += "#Version=";
  17. objectTag += IE_PRINT_CONTROL_PRODUCTVERSION;
  18. objectTag += "\" VIEWASTEXT>";
  19. if (window.dialogArguments.url) {
  20. objectTag +="<PARAM NAME=\"URL\" VALUE=\"";
  21. objectTag += window.dialogArguments.url;
  22. objectTag += "\">";
  23. }
  24. if (window.dialogArguments.postbackdata) {
  25. objectTag += "<PARAM NAME=\"PostBackData\" VALUE=\"";
  26. objectTag += window.dialogArguments.postbackdata;
  27. objectTag += "\">";
  28. }
  29. if (window.dialogArguments.title) {
  30. objectTag +="<PARAM NAME=\"Title\" VALUE=\"";
  31. objectTag += window.dialogArguments.title;
  32. objectTag += "\">";
  33. }
  34. if (window.dialogArguments.maxpage) {
  35. objectTag +="<PARAM NAME=\"MaxPageNumber\" VALUE=\"";
  36. objectTag += window.dialogArguments.maxpage;
  37. objectTag += "\">";
  38. }
  39. if (window.dialogArguments.pageorientation) {
  40. objectTag +="<PARAM NAME=\"PageOrientation\" VALUE=\"";
  41. objectTag += window.dialogArguments.pageorientation;
  42. objectTag += "\">";
  43. }
  44. if (window.dialogArguments.papersize) {
  45. objectTag +="<PARAM NAME=\"PaperSize\" VALUE=\"";
  46. objectTag += window.dialogArguments.papersize;
  47. objectTag += "\">";
  48. }
  49. if (window.dialogArguments.drivername) {
  50. objectTag +="<PARAM NAME=\"PrinterDriverName\" VALUE=\"";
  51. objectTag += window.dialogArguments.drivername;
  52. objectTag += "\">";
  53. }
  54. if (window.dialogArguments.usedefprinter) {
  55. objectTag +="<PARAM NAME=\"UseDefaultPrinter\" VALUE=\"";
  56. objectTag += window.dialogArguments.usedefprinter;
  57. objectTag += "\">";
  58. }
  59. if (window.dialogArguments.usedefprintersettings) {
  60. objectTag +="<PARAM NAME=\"UseDefaultPrinterSettings\" VALUE=\"";
  61. objectTag += window.dialogArguments.usedefprintersettings;
  62. objectTag += "\">";
  63. }
  64. if (window.dialogArguments.sendpostdataonce) {
  65. objectTag +="<PARAM NAME=\"SendPostDataOnce\" VALUE=\"";
  66. objectTag += window.dialogArguments.sendpostdataonce;
  67. objectTag += "\">";
  68. }
  69. objectTag += "</OBJECT>";
  70. //alert(objectTag);
  71. document.writeln(objectTag);
  72. -->
  73. </SCRIPT>
  74. </BODY>
  75. </HTML>