We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Remove sdt along with line break

HI Team,

I am trying to remove a structured document tag along with next line break

I have a document having

variable 1--------------STRUCTURED_DOCUMENT_TAG
variable 2--------------STRUCTURED_DOCUMENT_TAG
variable 3--------------STRUCTURED_DOCUMENT_TAG

I wanted to remove variable 2.but when i am using sdt.remove() it is giving me a result like this

variable 1--------------STRUCTURED_DOCUMENT_TAG

variable 3--------------STRUCTURED_DOCUMENT_TAG

But i want it to be like
variable 1--------------STRUCTURED_DOCUMENT_TAG
variable 3--------------STRUCTURED_DOCUMENT_TAG

I meant along with the sdt tag i want the line break also to be removed

can you Plz help me with that

@khushboomehta

Thanks for your inquiry. Please ZIP and 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 example.