印刷ジョブが多いこの xul オフライン アプリケーションを実行しています。完了したと言って、xul print から進行状況/リスナーを取得する方法はありますか? 私はしばらくこれで立ち往生しています。続行する方法についていくつかのアイデアを共有してください。印刷用のコードは次のとおりです。
xulファイル
<iframe type="content-primary" flex="1" src="index.html" />
印刷機能
function getWebBrowserPrint()
{
return _content.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIWebBrowserPrint);
}
function printpdf() {
var webBrowserPrint= getWebBrowserPrint();
var gPrintSettings = webBrowserPrint.globalPrintSettings;
gPrintSettings.footerStrLeft = "";
gPrintSettings.footerStrCenter = "";
gPrintSettings.footerStrRight = "";
gPrintSettings.headerStrLeft = "";
gPrintSettings.headerStrCenter = "";
gPrintSettings.headerStrRight = "";
gPrintSettings.printSilent = true;
gPrintSettings.showPrintProgress = true;
gPrintSettings.printerName = "PDF Writer";
webBrowserPrint.print(gPrintSettings, null);
}