Commit e751f83e authored by GoshaZotov's avatar GoshaZotov

fix bug 32555 - MS Excel считает книгу поврежденной после применения...

fix bug 32555  -   MS Excel считает книгу поврежденной после применения выборки данных, скрытия заголовков и экспорта в XLSX
parent b57ab056
...@@ -2389,6 +2389,12 @@ ...@@ -2389,6 +2389,12 @@
tablePart.HeaderRowCount = tablePart.HeaderRowCount === null ? 0 : null; tablePart.HeaderRowCount = tablePart.HeaderRowCount === null ? 0 : null;
tablePart.changeRef(null, 1, true); tablePart.changeRef(null, 1, true);
if(tablePart.AutoFilter)
{
tablePart.AutoFilter = null;
this._openHiddenRows(tablePart);
}
} }
else else
{ {
...@@ -2411,6 +2417,12 @@ ...@@ -2411,6 +2417,12 @@
tablePart.HeaderRowCount = tablePart.HeaderRowCount === null ? 0 : null; tablePart.HeaderRowCount = tablePart.HeaderRowCount === null ? 0 : null;
tablePart.changeRef(null, -1, true); tablePart.changeRef(null, -1, true);
} }
if(null === tablePart.AutoFilter)
{
tablePart.AutoFilter = new AscCommonExcel.AutoFilter();
tablePart.AutoFilter.Ref = tablePart.Ref.clone();
}
} }
......
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