FastReport
FastReport copied to clipboard
Custom Mask TextObject
Hi!
There are some fields I need to format, I created the following (function:
(...)
using System.ComponentModel;
(...)
private string FormatMask(string value, string mask)
{
MaskedTextProvider pro = new MaskedTextProvider(mask);
pro.Add(value);
return pro.ToString();
}
Works perfectly in FastReport Community (Preview Mode)
But when using in webreport presents the error attached:
I already added System.ComponentModel including
but it did not work
my json
Does anyone know an alternative to format fields through fastreport?
Any use of MaskedTextProvider
will not work for web (ASP.NET Core) at all. Because MaskedTextProvider
requires Winforms runtime and related Winforms components (such as those in System.ComponentModel.TypeConverter.dll
asssembly, and it is of course not available at all for web.
Therefore this bug should be closed instead of letting this marked/tegged as help wanted
.
cc @KirillKornienko