Free Support Forum -

Highlight a whole line from word document

I am in a situation if you can kindly guide;
suppose I know I have 400 lines in my word document, and I have to highlight the 280th Line of the document, is it possible to do it by line number rather than by search text?


Please ZIP and upload your sample input Word document and your expected DOCX file showing the desired output here for testing. You can create expected document by using MS Word. We will then investigate the scenario on our end and provide you code to achieve the same by using Aspose.Words.

Thank you for your response; Files attached as (25.9 KB);
As I have shared two documents, the input file has 41 lines, and I have to highlight 38th line of the document as in output file, the line number to be highlighted will be dynamic.


We are checking this scenario and will get back to you soon.