I'm using an xlsx file as a template for smart markers and have to modify the file frequently. Each time I do so, I have to remember to select cell A1 before I save, or else the resulting file generated by Spire.XLS will still have the cell selected which I last had clicked on. Due to dynamically added rows, this might mean the spreadsheet initially opens scrolled way down to the bottom. I want to make sure the spreadsheet always opens to the top of the document. Ideally, I would prefer nothing selected, but would settle for top-left cell selected.
What does Worksheet.Unselect() do? I can't see that it has any effect.
I have tried calling worksheet.SetActiveCell(worksheet.Range["A1"]). It does select A1, but it leaves an odd gray half-selected look to the previous selected cell, and stays scrolled down to the bottom with the previously selected cell.
How can I accomplish this?
Thanks,
Danny
Edit: .NET FreeSpire.XLS version 12.7