From 1ba9ddf351d2bd2b7c02a2d448c6b36dcb123f0c Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 16 Nov 2022 12:46:49 +0300 Subject: [PATCH] [DE] Quick print --- apps/documenteditor/main/app/controller/Main.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 5db889425..9ff4ae234 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -2655,9 +2655,12 @@ define([ }, onPrintQuick: function() { - if (!this.appOptions.canPrint) return; - // call special quick print - this.api.asc_Print(new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86)) + if (!this.appOptions.canQuickPrint) return; + var printopt = new Asc.asc_CAdjustPrint(); + printopt.asc_setNativeOptions({quickPrint: true}); + var opts = new Asc.asc_CDownloadOptions(); + opts.asc_setAdvancedOptions(printopt); + this.api.asc_Print(opts); Common.component.Analytics.trackEvent('Print'); },