Control characters in merge text

Hi I have text in an xml file and I load that into a dataset. Using the new Linq I can merge the data into the datafield no problem. A question though is how do I force a new line at various places in the string. I have tried \r\n and that just displays in the text.

Thanks.

Steve

Hi Steve,


Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document containing template fields
  • XML file
  • Aspose.Words generated output document which shows the undesired behavior
  • Your expected document which shows the correct output. Please create this document using Microsoft Word application.
  • Please create a standalone application (source code without compilation errors) that helps us reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we’ll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip them and Click ‘Reply’ button that will bring you to the ‘reply page’ and there at the bottom you can include any attachments with that post by clicking the ‘Add/Update’ button.

Best regards,

Hi I managed to get sorted. The issue was I am using XML and so have to use the XML escape characters and not the C# ones.

Thanks very much for responding much appreciated.

Steve

Hi Steve,


It is great you were able to find what you were looking for. Please let us know any time you have any further queries.

Best regards,