rem: printtype = gPrintOptInterface.kRangeSpecifiedPageRange; 
add: printService.printRange = gPrintOptInterface.kRangeSpecifiedPageRange; 
context: function onOK(){  var print_paper_size = 0;  if (printService) {    printService.printToFile   = dialog.fileRadio.checked;    printService.printReversed = dialog.lastRadio.checked;    printService.printInColor  = dialog.colorRadio.checked;    if (dialog.letterRadio.checked) {      print_paper_size = gPrintOptInterface.kLetterPaperSize;    } else if (dialog.legalRadio.checked) {      print_paper_size = gPrintOptInterface.kLegalPaperSize;    } else if (dialog.exectiveRadio.checked) {      print_paper_size = gPrintOptInterface.kExecutivePaperSize;    } else if (dialog.a4Radio.checked) {      print_paper_size = gPrintOptInterface.kA4PaperSize;    }    printService.paperSize = print_paper_size;    // save these out so they can be picked up by the device spec    printService.marginTop    = dialog.topInput.value;    printService.marginLeft   = dialog.leftInput.value;    printService.marginBottom = dialog.bottomInput.value;    printService.marginRight  = dialog.rightInput.value;    printService.printCommand = dialog.cmdInput.value;    printService.toFileName   = dialog.fileInput.value;    var printtype;    if (dialog.allpagesRadio.checked) {      printtype = gPrintOptInterface.kRangeAllPages;    } else if (dialog.rangeRadio.checked) {      printtype = gPrintOptInterface.kRangeSpecifiedPageRange;    } else if (dialog.selectionRadio.checked) {      printtype = gPrintOptInterface.kRangeSelection;    }    printService.startPageRange = dialog.frompageInput.value;    printService.endPageRange   = dialog.topageInput.value;    var frametype;    if (dialog.aslayedoutRadio.checked) {      frametype = gPrintOptInterface.kFramesAsIs;    } else if (dialog.selectedframeRadio.checked) {      frametype = gPrintOptInterface.kSelectedFrame;    } else if (dialog.eachframesepRadio.checked) {      frametype = gPrintOptInterface.kEachFrameSep;    } else {      frametype = gPrintOptInterface.kSelectedFrame;    }    printService.printFrameType = frametype;  } else {    dump("************ printService: "+printService+"\n");  }  if (param) {    param.SetInt(0, 0 );  }  return true;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/0cb646bd6abb54a1e9c5ce6a9ea002cbbc4a3d95/printdialog.js/clean/xpfe/global/resources/content/unix/printdialog.js