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

Free Support Forum - aspose.com

CardText aspose word .net

Hi,

I can’t found if i can convert an int number to text with CardText in aspose word .net
i don’t found an example
like when i pass an object to the template with value 1200 i’d like to show one thousand two hundred in my docx file
can any one help me please

@matoui

Thanks for your inquiry. You can use Mail Merge feature of Aspose.Words to accomplish your requirement. Please check following sample code and attached files for reference. CardText.zip (17.1 KB)

Document doc = new Document(@"CardText.docx");
doc.MailMerge.Execute(
new string[] { "shares" },
new object[] { 1200 });
doc.UpdateFields();
doc.Save(@"CardText_177.docx");
1 Like