Page 1 of 1
Calculated Colums
Posted: Thu Jun 22, 2006 7:10 am
by EDV Gradl
I can't seem the add calculated colums to my project.
E.G. I add Math.Round(2*2,2) as the formula,
but get the error unknown type or namespace LieferscheinObjekt (My Dataset name)
This is code is created by Stmulreport:
public virtual double Column
{
get
{
return ((LieferscheinObjekt)(this.Dictionary.Report)).Getdbo_ReportLSObjekt_Column();
}
}
Thanks!
Calculated Colums
Posted: Thu Jun 22, 2006 8:09 am
by Edward
Please try to add the following expression as the formula:
Code: Select all
Math.Round(2d*2d,2) or Math.Round(2*2.0,2)
C# compiler can't compile expression Math.Round(2*2,2). In the Error List you can see:
Error 6 The call is ambiguous between the following methods or properties: 'System.Math.Round(double, int)' and 'System.Math.Round(decimal, int). You need to specificate double or decimal argument for method Round.
Thanks.
Calculated Colums
Posted: Thu Jun 22, 2006 8:27 am
by EDV Gradl
That, sadly still does not work.
The erros is:
"The type of namespace 'LieferscheinObjekt' could not be found.
LieferscheinObjekt of my DataSet. The Error is in this lines:
public virtual double Column
{
get
{
return ((LieferscheinObjekt)(this.Dictionary.Report)).Getdbo_ReportLSObjekt_Column();
}
}
Calculated Colums
Posted: Thu Jun 22, 2006 8:43 am
by Edward
Please select Report object in Designer's Properties Editor and try to add LieferscheinObjekt in Report ReferensedAssemblies string collection.
If it will not helps or it is another object please send your report to support[at]stimulsoft[dot]com.
Thanks.
Calculated Colums
Posted: Fri Jun 23, 2006 5:21 am
by Edward
Problem solved.
Thanks.