Need to Divide text into parts so as to add entire string as a whole in word file

Hi All,

I need to replace some text in my word file which might be greater than 255, as word file doesn’t replace text greater than 255, I am using .Substring method to divide the string, I am stuck at a part. And unsure on how to add the string in correct position after summation. Attaching sample xaml and word file. Need to replace input with the text given

Thankyou so much in advance!

Test.xaml (27.5 KB)
February Sales.docx (11.8 KB)

Hi @Neha_Kumari1 , here’s a crudely implemented solution just to show that it will work and you get the general idea… You can refine it by doing a for loop for each text part. I have excluded part 4 as that part is still more than 255.
February Sales.docx (18.9 KB)
Test_Mod.xaml (29.1 KB)

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.