Trimming of leading TAB from mergefield

I’m currently evaluating Aspose Words to see if it’s usable for our company.



I’m using version 15.10



Now I’m merging with a field (through a DataTable) that contains a leading TAB. This leading TAB is being trimmed with the MailMerge.ExecuteWithRegions.



Is it possible to keep the leading TAB?

Hi Michel,

Thanks for your inquiry. It would be great if you please share following detail for investigation purposes.


  • The Program.txt has size 0kb. Please

    create a standalone/runnable simple application (for example a Console
    Application Project
    ) that demonstrates the code (Aspose.Words code) you used to generate
    your output document

  • Please attach the output Word file that shows the undesired behavior.
  • Please
    attach your target Word document showing the desired behavior. You can
    use Microsoft Word to create your target Word document. I will
    investigate as to how you are expecting your final document be generated
    like.

As soon as you get these pieces of information to
us we’ll start our investigation into your issue.

Hi Tahir,

I’ve added the requested information.

Regards,
Michel

Hi Michel,

Thanks for sharing the detail. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-12791. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-12791) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

This release did NOT solve the problem mentioned earlier.



Regards, Michel



EDIT: After setting Document.MailMerge.TrimWhitespaces to false everything worked as desired!

Hi Michel,

Thanks for your feedback. It is nice to hear from you that you have found the solution of your issue. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.