0 Replies Latest reply on Jun 9, 2006 3:12 AM by kalyanchakri

    problem in printing specified pages with print job class it's urgent

    kalyanchakri Level 1
      hi,

      how i can print specific pages using printjob class. i am using following code for printing. if i run this it is printing all the pages.
      i want to print some specific pages only.

      var my_pj = new PrintJob();
      if (my_pj.start()) {
      if (my_pj.orientation == "landscape") {
      for (var i = 0; i<_root.iPages; i++) {
      var yMaxPoz = 590;
      var yMinPoz = 0;
      for (var inPage = 0; inPage<myPages ; inPage++) {
      var x = MainPrint["prints"+i]._xscale;
      var y = MainPrint["prints"+i]._yscale;
      MainPrint["prints"+i]._xscale = 86;
      MainPrint["prints"+i]._yscale = 92;
      my_pj.addPage(MainPrint["prints"+i], {xMin:0, xMax:860, yMin:yMinPoz, yMax:yMaxPoz});
      MainPrint["prints"+i]._xscale = x;
      MainPrint["prints"+i]._yscale = y;
      yMinPoz = yMaxPoz-14;
      yMaxPoz += 590;
      }
      }
      my_pj.send();
      delete my_pj;
      }