Commit a06c982f authored by Sergey.Konovalov's avatar Sergey.Konovalov

revert Revision: 56469

try,catch для открытия больших файлов на мобильных устройствах.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59989 954022d7-b5bf-4e40-9824-e11837661b57
parent a38e7c70
...@@ -4677,19 +4677,19 @@ function BinaryFileReader(doc, openParams) ...@@ -4677,19 +4677,19 @@ function BinaryFileReader(doc, openParams)
}; };
this.Read = function(data) this.Read = function(data)
{ {
//try{ try{
this.stream = this.getbase64DecodedData(data); this.stream = this.getbase64DecodedData(data);
this.PreLoadPrepare(); this.PreLoadPrepare();
this.ReadMainTable(); this.ReadMainTable();
this.PostLoadPrepare(); this.PostLoadPrepare();
//} }
//catch(e) catch(e)
//{ {
// if(e.message == g_sErrorCharCountMessage) if(e.message == g_sErrorCharCountMessage)
// return false; return false;
// else else
// throw e; throw e;
//} }
return true; return true;
}; };
this.ReadData = function(data) this.ReadData = function(data)
...@@ -7302,7 +7302,7 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow ...@@ -7302,7 +7302,7 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
var oThis = this; var oThis = this;
if ( c_oSerParType.Par === type ) if ( c_oSerParType.Par === type )
{ {
if(null != this.openParams && true == this.openParams.checkFileSize) if(null != this.openParams)
{ {
this.openParams.parCount += 1; this.openParams.parCount += 1;
if(this.openParams.parCount >= g_nErrorParagraphCount) if(this.openParams.parCount >= g_nErrorParagraphCount)
......
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