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

Free Support Forum - aspose.com

Disable converting string to scientific notation

Hello. I met an issue that the output file is converting a string “21E100” to “2.1E+101”.

In JsonDataSource the raw data is like:

    {
        "id": "21E100"
    }

In template file I have: "XXX FILE #<<[.Id]>>.

My expected output is: "XXX FILE #21E100"

How could I stop it from automatically converting to scientific notation?

@zli7,

Please compress the following resources into ZIP format and attach the .zip file here for testing:

  • A simplified template Word document
  • JSON file containing the simplified data
  • Aspose.Words generated output DOCX file showing the undesired behavior
  • Please also create a standalone simplified Console Application (source code without compilation errors) that helps us to reproduce this problem on our end and attach it here for testing. Please do not include DLL files in it to reduce the file size.

As soon as you get these pieces of information ready, we will then start further investigation into your particular issue and provide you more information.