Free Support Forum - aspose.com

Inserting text in body

Hi,

I have problem while inserting text in body. We have two files one is input file and another is output file. in input file we have tag. i need to get text between body.

For example<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

This is body

this can come in any format like. i am giving some few format below.

1.. this is nody

2. This is body

i need to get text between and .

In output file i have <%BODY%>, that may come along with other place holder. so body text should replace output placeholder.

output <%BODY%> also can come in any place like i give you some example.

1. <%NAME%> <%BODY%>

2. <%NAME%

<%BODY%>

we want the body text should inserted in the proper place, wherever the <%BODY%> is coming.

But the code i have attched in mail is not inserting text as given format, because i am using node as paragraph. every time it is inserted in the next paragraph,thats why it is changing formatting in output file. So is there any way to insert node as run, so that the text format will start with the appropriate place wherever <%BODY%> tag is coming.

Thanks and regards

vidhya

Hi

Thanks for your request. I modified your code and it seems that all works fine now. I modified ReplaceActionSearchContent and InsertContent_109592. See attached application.

Best regards.