Hi,
I want to add following if condition in aspose word,
<<if [Daten.ABRAKBUSAnzahl > 0]>>
but its giving error.
What is the correct way to convert it to number and compare it?
Daten.ABRAKBUSAnzahl should be greater than 0
Hi,
I want to add following if condition in aspose word,
<<if [Daten.ABRAKBUSAnzahl > 0]>>
but its giving error.
What is the correct way to convert it to number and compare it?
Daten.ABRAKBUSAnzahl should be greater than 0
In general, it depends on an actual type of Daten.ABRAKBUSAnzahl
. If the type implements IConvertible
, then it is possible to use built-in .NET capabilities of Convert
as follows:
<<if [Convert.ToInt32(Daten.ABRAKBUSAnzahl) > 0]>>
In this case, please make sure typeof(Convert)
is made known by the engine as follows:
ReportingEngine engine = new ReportingEngine();
engine.KnownTypes.Add(typeof(Convert));
engine.BuildReport(...);
See Setting up Known External Types for more information.