Aspose.Words- How to find table in Header and change value of cell?

Hi,All! I’m very newbie in Aspose. Can you help me to change cell value in docx document?

Hi Pavel,


Thanks for your inquiry. Please use Range.Replace method to replace all occurrences of a specified string with another string.

Could you please attach your input and expected output Word documents here for our reference? We will then provide you more information about your query along with code.

I’ve fixed my problem with DocumentBuilder this way


DocumentBuilder db = new DocumentBuilder(tCard);
db.MoveTo(tCard.Sections[0].HeadersFooters[HeaderFooterType.HeaderPrimary].Tables[0].Rows[1].Cells[3].FirstParagraph);
db.Write(string.Format("#{0}",WO==null ? string.Empty : WO.ToString()));

Hi Pavel,


Thanks for your feedback. It is nice to hear from you that you have solved your issue. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.