rem: printService.printRange = gPrintOptInterface.kRangeAllPages; 
add: gPrintSettings.printRange = gPrintSetInterface.kRangeAllPages; 
context: function onAccept(){  if (printService) {    var print_howToEnableUI = gPrintOptInterface.kFrameEnableNone;    printService.printToFile   = dialog.fileRadio.selected;    print_howToEnableUI        = printService.howToEnableFrameUI;    // save these out so they can be picked up by the device spec    printService.toFileName   = dialog.fileInput.value;    printService.printer      = dialog.printerList.value;    if (dialog.allpagesRadio.selected) {      printService.printRange = gPrintOptInterface.kRangeAllPages;    } else if (dialog.rangeRadio.selected) {      printService.printRange = gPrintOptInterface.kRangeSpecifiedPageRange;    } else if (dialog.selectionRadio.selected) {      printService.printRange = gPrintOptInterface.kRangeSelection;    }    printService.startPageRange = dialog.frompageInput.value;    printService.endPageRange   = dialog.topageInput.value;    printService.numCopies      = dialog.numCopiesInput.value;    var frametype = gPrintOptInterface.kNoFrames;    if (print_howToEnableUI != gPrintOptInterface.kFrameEnableNone) {      if (dialog.aslaidoutRadio.selected) {        frametype = gPrintOptInterface.kFramesAsIs;      } else if (dialog.selectedframeRadio.selected) {        frametype = gPrintOptInterface.kSelectedFrame;      } else if (dialog.eachframesepRadio.selected) {        frametype = gPrintOptInterface.kEachFrameSep;      } else {        frametype = gPrintOptInterface.kSelectedFrame;      }    }    printService.printFrameType = frametype;  } else {    dump("************ printService: "+printService+"\n");  }  if (param) {    param.SetInt(0, 0 );  }  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1fde5f13f3ec7880ec55d21c00cfccab6c2f05ce/printdialog.js/buggy/xpfe/global/resources/content/printdialog.js