diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 7d96550c7d..24bb00796c 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -2026,7 +2026,7 @@ define([ window.focus(); } catch (e) { var opts = new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.PDF); - opts.asc_setAdjustPrint(me.getApplication().getController('Print').getPrintParams()); + opts.asc_setAdvancedOptions(me.getApplication().getController('Print').getPrintParams()); me.api.asc_DownloadAs(opts); } }; diff --git a/apps/spreadsheeteditor/main/app/controller/Print.js b/apps/spreadsheeteditor/main/app/controller/Print.js index 4ffddea960..df38ffdea5 100644 --- a/apps/spreadsheeteditor/main/app/controller/Print.js +++ b/apps/spreadsheeteditor/main/app/controller/Print.js @@ -268,11 +268,11 @@ define([ if ( this.printSettingsDlg.type=='print' ) { var opts = new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isSafari || Common.Utils.isOpera); - opts.asc_setAdjustPrint(this.adjPrintParams); + opts.asc_setAdvancedOptions(this.adjPrintParams); this.api.asc_Print(opts); } else { var opts = new Asc.asc_CDownloadOptions(this.downloadFormat, this.asUrl); - opts.asc_setAdjustPrint(this.adjPrintParams); + opts.asc_setAdvancedOptions(this.adjPrintParams); this.api.asc_DownloadAs(opts); } Common.component.Analytics.trackEvent((this.printSettingsDlg.type=='print') ? 'Print' : 'DownloadAs');