This project has moved and is read-only. For the latest updates, please go here.

Issue setting existing textbox's text

Mar 17, 2015 at 4:53 PM

I'm trying to update and existing textbox's text, but the following has no effect:
 private void SetShapeText(ExcelWorksheet sheet, string shapeName, string value)
            var shape = sheet.Drawings[shapeName] as ExcelShape;
            if (shape != null)
                // Doesnt work??
                shape.Text = value;
Any help would be greatly appreciated.

Mar 23, 2015 at 6:27 PM
I found a workaround for this, which leads to think it was a defect.

The work around was to set the textboxs text in the template and then overwrite it in the code
Marked as answer by MattOakley on 3/23/2015 at 10:27 AM