Spire XLS version 13.11.4
I am using Spire XLS in my ASP.NET Core application (.NET 7.0) to create a UI that allows a user to download an excel workbook. I have an excel template filed stored in my root folder that the code accesses to generate the workbook from. The excel template has two sheets, with the first containing four textboxes. My goal is to select the textbox and add text to it using the HtmlString method. However, through debugging, I found that Spire does not detect the already existing textboxes because I noticed the count of textboxes in the template was zero.
Here is the code I am using to access the textbox:
XlsTextBoxShape shape = sheet1.TextBoxes[0] as XlsTextBoxShape
shape.HtmlString = "this is a test string";
The reason I want to select the textbox that exists within the template is because I need a specific font and font size preemptively set before I add formatting through the HtmlString method.