I’m trying to update (add chars to the end of text) currently placed and designed textbox in my template. The text inside the textbox has a different styles so it’s impossible to get style and apply it after.
See attached example.
I try edit both TextBox and Shape object:
Shape tBox = worksheet.Shapes[“TB1”];
tBox.Text += " lalala";
- or -
TextBox tBox = worksheet.TextBoxes[“TB1”];
tBox.Text += " lalala";
but result is the same. Could you, please, help me to understand, what am I doing wrong?
It is working good in the latest version. I have tested this issue with the following sample code. Please check the sample excel file used in this code and the output excel file generated by the code for your reference.
Thank you for such a quick response. The main idea is a number of different fonts in textbox. Attaching sample file and o.xlsx - a result of your code using the last version, attached by you.
Your issue is logged just now. So please wait at least 3-7 working days before you ask for ETA. In case, the fix is available sooner, we will let you know asap.
Good to know that your issue is sorted out by the suggested code. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.