Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.0 KiB

  1. <HTML>
  2. <HEAD>
  3. <!--
  4. Copyright (c) 2000 Microsoft Corporation
  5. -->
  6. <OBJECT ID=pchealth classid=CLSID:FC7D9E02-3F9E-11d3-93C0-00C04F72DAF7></OBJECT>
  7. <SCRIPT LANGUAGE=JavaScript>
  8. var cm = null;
  9. function StartPrinting()
  10. {
  11. cm = pchealth.CreateObject_PrintEngine();
  12. cm.AddTopic( "hcp://system/dummy.htm" );
  13. cm.AddTopic( "hcp://system/dummy2.htm" );
  14. cm.AddTopic( "hcp://system/forums.htm" );
  15. cm.onComplete = onComplete;
  16. cm.onProgress = onProgress;
  17. cm.Start();
  18. }
  19. function AbortPrinting()
  20. {
  21. if(cm)
  22. {
  23. cm.Abort();
  24. cm = null;
  25. }
  26. }
  27. function onProgress( pchpe, url, done, total )
  28. {
  29. idOutput.innerHTML += "Progress: " + done + "/" + total + "<BR>";
  30. // if(done == 1) pchpe.Abort();
  31. // debugger;
  32. }
  33. function onComplete( pchpe, hr )
  34. {
  35. idOutput.innerHTML += "Done: " + hr + "<BR>";
  36. }
  37. </SCRIPT>
  38. </HEAD>
  39. <BODY>
  40. <BUTTON onClick="StartPrinting();">Start</BUTTON>
  41. <BUTTON onClick="AbortPrinting();">Abort</BUTTON><BR>
  42. <DIV id=idOutput ALIGN=center VALIGN=middle></DIV>
  43. </BODY>
  44. </HTML>