Commit 88b6fe3e authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

save to pdf doctrenderer

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@67474 954022d7-b5bf-4e40-9824-e11837661b57
parent 2e9570c9
...@@ -2954,6 +2954,8 @@ var editor; ...@@ -2954,6 +2954,8 @@ var editor;
}; };
spreadsheet_api.prototype.asc_nativeCalculateFile = function() { spreadsheet_api.prototype.asc_nativeCalculateFile = function() {
window['DoctRendererMode'] = true;
this.wb._nativeCalculate();
}; };
spreadsheet_api.prototype.asc_nativeApplyChanges = function(changes) { spreadsheet_api.prototype.asc_nativeApplyChanges = function(changes) {
...@@ -3018,7 +3020,6 @@ var editor; ...@@ -3018,7 +3020,6 @@ var editor;
}; };
spreadsheet_api.prototype.asc_nativeCalculate = function() { spreadsheet_api.prototype.asc_nativeCalculate = function() {
this.wb._nativeCalculate();
}; };
spreadsheet_api.prototype.asc_nativePrint = function(_printer, _page) { spreadsheet_api.prototype.asc_nativePrint = function(_printer, _page) {
...@@ -3048,7 +3049,7 @@ var editor; ...@@ -3048,7 +3049,7 @@ var editor;
window["AscDesktopEditor"]["Print_End"](); window["AscDesktopEditor"]["Print_End"]();
} }
return; return pdf_writer.DocumentRenderer.Memory;
} }
var isEndPrint = this.wb.printSheet(_printer, _printPagesData); var isEndPrint = this.wb.printSheet(_printer, _printPagesData);
......
...@@ -1144,7 +1144,7 @@ ...@@ -1144,7 +1144,7 @@
WorksheetView.prototype._prepareDrawingObjects = function () { WorksheetView.prototype._prepareDrawingObjects = function () {
this.objectRender = new DrawingObjects(); this.objectRender = new DrawingObjects();
if (!window["NATIVE_EDITOR_ENJINE"] || window['IS_NATIVE_EDITOR']) if (!window["NATIVE_EDITOR_ENJINE"] || window['IS_NATIVE_EDITOR'] || window['DoctRendererMode'])
this.objectRender.init(this); this.objectRender.init(this);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment