Commit 877efb1b authored by konovalovsergey's avatar konovalovsergey Committed by Alexander.Trofimov

add contentDisposition inline to print

parent 187ce09e
......@@ -832,7 +832,10 @@ var editor;
oAdditionalData["userid"] = this.documentUserId;
oAdditionalData["vkey"] = this.documentVKey;
oAdditionalData["outputformat"] = sFormat;
oAdditionalData["title"] = changeFileExtention(this.documentTitle, getExtentionByFormat(sFormat));
oAdditionalData["title"] = changeFileExtention(this.documentTitle, getExtentionByFormat(sFormat));
if (DownloadType.Print === options.downloadType) {
oAdditionalData["inline"] = 1;
}
if (c_oAscFileType.PDF === sFormat) {
var printPagesData = this.wb.calcPagesPrint(this.adjustPrint);
var pdf_writer = new CPdfPrinter();
......
......@@ -4713,7 +4713,10 @@ function _downloadAs(editor, filetype, actionType, options)
oAdditionalData["vkey"] = editor.documentVKey;
oAdditionalData["outputformat"] = filetype;
oAdditionalData["title"] = changeFileExtention(editor.documentTitle, getExtentionByFormat(filetype));
oAdditionalData["savetype"] = c_oAscSaveTypes.CompleteAll;
oAdditionalData["savetype"] = c_oAscSaveTypes.CompleteAll;
if (DownloadType.Print === options.downloadType) {
oAdditionalData["inline"] = 1;
}
if(c_oAscFileType.PDF == filetype)
{
var dd = editor.WordControl.m_oDrawingDocument;
......
......@@ -6709,6 +6709,9 @@ function _downloadAs(editor, command, filetype, actionType, options, fCallbackRe
oAdditionalData["outputformat"] = filetype;
oAdditionalData["title"] = changeFileExtention(editor.documentTitle, getExtentionByFormat(filetype));
oAdditionalData["savetype"] = c_oAscSaveTypes.CompleteAll;
if (DownloadType.Print === options.downloadType) {
oAdditionalData["inline"] = 1;
}
if (options.isNoData) {
;//nothing
} else if (null == options.oDocumentMailMerge && c_oAscFileType.PDF === filetype) {
......
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