DocumentBuilder InsertFields throws IndexOutOfRangeException

Hi

I try to built up some word document with cardtext formatted fields.
My problem is that

DocumentBuilder builder = new DocumentBuilder(doc);

int i = 100;
builder.InsertField(string.Format("={0} \* CardText", i));

throws an exception.
It seems you added CardText evaluation for English. Is there some way to disable it?
I need this list for data driven unit tests of a custom function doing number to words convertion in several languages. I will update the document for myself so I don’t need Asposes evaluation this time.

Kind regards,
TK

Stacktrace is
at x28925c9b27b37a46.x06cdc368fe099286.x7d6e06def683f597(Int32 x57e9faf3ffdc07cc, Boolean x2e4d65ae902c9125)
at x28925c9b27b37a46.x06cdc368fe099286.ToString(Boolean isCardinal)
at x28925c9b27b37a46.x00b47748a95c9437.xef2b818df2e922e1(Boolean x2e4d65ae902c9125)
at x28925c9b27b37a46.x00b47748a95c9437.ToString(Boolean isCardinal)
at x28925c9b27b37a46.x0ea6f17b4ec8a565.x4451aee0d7854586()
at x28925c9b27b37a46.x00b47748a95c9437.x90a58d56cffae737()
at xfbd1009a0cbb9842.xc748717b959aa98c.xe63a183f2c163577(x82e26649b09596bd xbcea506a33cf9111, Field xe01ae93d9fe5a880, String& x7d95d971d8923f4c)
at xfbd1009a0cbb9842.xc748717b959aa98c.xd4f20c6c3f6afa2f(x82e26649b09596bd xbcea506a33cf9111, Field xe01ae93d9fe5a880, String& x7d95d971d8923f4c)
at xfbd1009a0cbb9842.xca592a476766b11a.xc7e8ef87526d9280()
at xfbd1009a0cbb9842.xca592a476766b11a.xb333e1e6c01c2be2()
at Aspose.Words.Fields.Field.x295cb4a1df7a5add(x5e36356bc92c609b x0f7b23d1c393aed9)
at xfbd1009a0cbb9842.xfedf115fd9c03862.x4e3cfc222c92cda7(Field xe01ae93d9fe5a880, x5e36356bc92c609b x0f7b23d1c393aed9)
at xfbd1009a0cbb9842.xfedf115fd9c03862.x4e3cfc222c92cda7(Field xe01ae93d9fe5a880)
at xfbd1009a0cbb9842.xbf9ddf72e1283af9.x18dfca7c5fd2402f()
at xfbd1009a0cbb9842.xfedf115fd9c03862.xdd6cf0348a23f220(xcf417e2db4fe9ed3 xe00c282e1a49fcfb)
at xfbd1009a0cbb9842.xfedf115fd9c03862.x384c03e4298b53bf()
at Aspose.Words.Fields.Field.Update()
at Aspose.Words.DocumentBuilder.InsertField(String fieldCode)

Hello
Thank you for reporting this problem to us. I managed to reproduce it on my side. You will be notified as soon as the issue is resolved.
Best regards.

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


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