rem: gPrintSettings = GetPrintSettings(); 
add: gPrintSettings = PrintUtils.getPrintSettings(); 
context: function AbPrintCardInternal(doPrintPreview, msgType){  var selectedItems = GetSelectedAbCards();  var numSelected = selectedItems.length;  if (!numSelected)    return;  var addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.interfaces.nsIAddressBook);  var uri = GetSelectedDirectory();  if (!uri)    return;   var statusFeedback;   statusFeedback = Components.classes["@mozilla.org/messenger/statusfeedback;1"].createInstance();   statusFeedback = statusFeedback.QueryInterface(Components.interfaces.nsIMsgStatusFeedback);   var selectionArray = new Array(numSelected);   var totalCard = 0;   for (var i = 0; i < numSelected; i++)   {     var card = selectedItems[i];     var printCardUrl = CreatePrintCardUrl(card);     if (printCardUrl)     {        selectionArray[totalCard++] = printCardUrl;     }  }  if (!gPrintSettings)  {    gPrintSettings = GetPrintSettings();  }  printEngineWindow = window.openDialog("chrome://messenger/content/msgPrintEngine.xul",                                         "",                                         "chrome,dialog=no,all",                                          totalCard, selectionArray, statusFeedback,                                           gPrintSettings, doPrintPreview, msgType);  return;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/9427d8ca4c611e2953fccd1f583fffe36c971168/addressbook.js/buggy/mail/components/addrbook/content/addressbook.js