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

Free Support Forum - aspose.com

String format firstCap not working in combination with html switch

I noticed that the String format ‘firstCap’ does not seem to work when it is used in combination with HTML formatting. A minimal code example looks like this:

var doc = new Document();
var b = new DocumentBuilder(doc);
b.Writeln("Expected: Bold Caps, Actual: <<[\"<b>bold caps</b>\"]:caps -html>>");
b.Writeln("Expected: Bold firstCap, Actual: <<[\"<b>bold firstCaps</b>\"]:firstCap -html>>");
var engine = new ReportingEngine();
engine.BuildReport(doc, new string[]{});

The ‘caps’ format works as expected. I can get ‘firstCap’ only to work if the html switch is removed.


We have logged this problem in our issue tracking system as WORDSNET-22691. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

1 Like

The issues you have found earlier (filed as WORDSNET-22691) have been fixed in this Aspose.Words for .NET 21.10 update also available on NuGet.