Commit 222b175b authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

не печатается во viewer pdf

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52287 954022d7-b5bf-4e40-9824-e11837661b57
parent d53b66cc
...@@ -2487,7 +2487,10 @@ asc_docs_api.prototype.asc_Print = function() ...@@ -2487,7 +2487,10 @@ asc_docs_api.prototype.asc_Print = function()
if(null == this.WordControl.m_oLogicDocument) if(null == this.WordControl.m_oLogicDocument)
{ {
var rData = {"id":documentId, "vkey": documentVKey, "format": documentFormat, "c":"savefromorigin"}; var rData = {"id":documentId, "vkey": documentVKey, "format": documentFormat, "c":"savefromorigin"};
sendCommand(editor, function(){editor.sync_EndAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.Print);}, rData); sendCommand(editor, function(incomeObject){
if(null != incomeObject && "save" == incomeObject["type"])
editor.processSavedFile(incomeObject["data"], false);
editor.sync_EndAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.Print);}, rData);
} }
else else
_downloadAs(this, c_oAscFileType.PDF, function(incomeObject){ _downloadAs(this, c_oAscFileType.PDF, function(incomeObject){
......
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