Commit 29b1c284 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

SaveToPDFParams

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68163 954022d7-b5bf-4e40-9824-e11837661b57
parent a6bd26fe
...@@ -400,9 +400,9 @@ function GetNativeCountPages() ...@@ -400,9 +400,9 @@ function GetNativeCountPages()
return _api.asc_nativePrintPagesCount(); return _api.asc_nativePrintPagesCount();
} }
function GetNativeFileDataPDF() function GetNativeFileDataPDF(_param)
{ {
return _api.asc_nativeGetPDF(); return _api.asc_nativeGetPDF(_param);
} }
window.memory1 = null; window.memory1 = null;
......
...@@ -3122,10 +3122,17 @@ var editor; ...@@ -3122,10 +3122,17 @@ var editor;
spreadsheet_api.prototype.asc_nativeCalculate = function() { spreadsheet_api.prototype.asc_nativeCalculate = function() {
}; };
spreadsheet_api.prototype.asc_nativePrint = function(_printer, _page) { spreadsheet_api.prototype.asc_nativePrint = function(_printer, _page, _param) {
var _adjustPrint = window.AscDesktopEditor_PrintData ? window.AscDesktopEditor_PrintData : new asc_CAdjustPrint(); var _adjustPrint = window.AscDesktopEditor_PrintData ? window.AscDesktopEditor_PrintData : new asc_CAdjustPrint();
window.AscDesktopEditor_PrintData = undefined; window.AscDesktopEditor_PrintData = undefined;
if (1 == _param)
{
_adjustPrint.asc_setPrintType(c_oAscPrintType.EntireWorkbook);
_adjustPrint.asc_setFitToWidth(true);
_adjustPrint.asc_asc_setFitToHeight(true);
}
var _printPagesData = this.wb.calcPagesPrint(_adjustPrint); var _printPagesData = this.wb.calcPagesPrint(_adjustPrint);
if (undefined === _printer && _page === undefined) { if (undefined === _printer && _page === undefined) {
...@@ -3160,8 +3167,8 @@ var editor; ...@@ -3160,8 +3167,8 @@ var editor;
return 1; return 1;
}; };
spreadsheet_api.prototype.asc_nativeGetPDF = function() { spreadsheet_api.prototype.asc_nativeGetPDF = function(_param) {
var _ret = this.asc_nativePrint(); var _ret = this.asc_nativePrint(undefined, undefined, _param);
window["native"]["Save_End"]("", _ret.GetCurPosition()); window["native"]["Save_End"]("", _ret.GetCurPosition());
return _ret.data; return _ret.data;
......
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