Hi Team,
Hi Nakul,
Thanks for your query. It would be great, If you share your document along with code for investigation purposes.
Hi Tahir,
Hi Nakul,
Thanks for sharing the information. Please use the following code snippet for your requirement. Let us know, If you have any more queries.
string textToReplace = "Hi team," + Aspose.Words.ControlChar.LineBreak + " This is text message from Nakul." + Aspose.Words.ControlChar.LineBreak + " Thanks";
doc.Range.Replace("##WELCOMENOTE##", textToReplace, true, false);
Hi,
This is not good solution,
How could i do this with user input.
-Nakul
Hi Nakul,
If you are getting input form user, you can use following code snippet. In following example, I am getting input form user in the text box named txtInput. Hope this helps you.
Document doc = new Document(MyDir + "InitialPage6.docx");
string textToReplace = txtInput.Text.Replace("\r\n", Aspose.Words.ControlChar.LineBreak);
doc.Range.Replace("##WELCOMENOTE##", textToReplace, true, false);
doc.Save(MyDir + @"output.docx");
Please let us know, If you have any more queries.
Hi Nakul,
Hi team,
Sorry for the delayed reply.
It works well, but i would expect to handle such common scenarios inside library.
If it is final solution you can close this issue.
Thanks and Regards,
Nakul
Hi Nakul,
The issues you have found earlier (filed as WORDSNET-1252) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(40)