added printWithSettings method for printing with PrintSettings

Bug 118352 r=dcone sr=jst
This commit is contained in:
rods%netscape.com 2006-09-14 06:02:08 +00:00
Родитель 981b9a3a39
Коммит b3f69137a2
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -81,7 +81,7 @@ function BrowserPrintPreview()
}
// using _content.printPreview() until printing becomes scriptable on docShell
try {
_content.printPreview(gPrintSettings, false);
_content.printPreview(gPrintSettings);
} catch (e) {
// Pressing cancel is expressed as an NS_ERROR_FAILURE return value,
@ -149,7 +149,7 @@ function BrowserPrint()
}
// using _content.print() until printing becomes scriptable on docShell
_content.print(gPrintSettings, false);
_content.printWithSettings(gPrintSettings);
// now set our setting into the global settings
// after the changes were made