This project has moved. For the latest updates, please go here.

Issue setting existing textbox's text

Mar 17, 2015 at 3:53 PM
Hi,

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.

Matt
Mar 23, 2015 at 5: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