DocumentServer icon indicating copy to clipboard operation
DocumentServer copied to clipboard

`getCells` method arguments index starts from both 0 and 1

Open evildeadhc opened this issue 2 years ago • 3 comments

отсчет строк начинается с 1, а вот столбцов от 0. то есть при попытке записать в ячейку "E2" Api.GetActiveSheet().GetCells(2, 5).SetValue(""); запись происходит не в "E2", а в "F2".

evildeadhc avatar Mar 20 '22 00:03 evildeadhc

Hi, please do not use the Russian language in issue reports - we are an international community and only allow English in issue reports (you can translate it via an online translator), so other people would find those reports if someone else faced similar issue

Also please add more details about your environment - which version of DocumentServer/DesktopEditors are you using

ShockwaveNN avatar Mar 20 '22 07:03 ShockwaveNN

Hi, I'm sorry, I'll try using google translator. the count of rows starts from 1, but the columns start from 0. That is, when considering the cell "E2" Api.GetActiveSheet().GetCells(2, 5).SetValue(""); the entry is not in "E2", but in "F2". that is, the coordinates of "A1" do not start from (1, 1), but from (1, 0). I used ONLYOFFICE Desktop Editors v 7.0.1.37

evildeadhc avatar Mar 20 '22 10:03 evildeadhc

@evildeadhc HI! Yes, the behavior of the method is not as expected. Formed the bug in our private repository bug 56159

askonev avatar Mar 21 '22 10:03 askonev