Class ExpressionItem
A report item that evaluates an expression and prints its formatted result, supporting
aggregates (sum, min, max, average, standard deviation), page-count variables, optional
export values, HTML content and splitting across multiple pages.
Inheritance
ExpressionItem
Assembly: Reportman.Reporting.dll
Syntax
public class ExpressionItem : PrintItemText, IDisposable
Constructors
View Source
ExpressionItem()
Declaration
Fields
View Source
DataCount
Declaration
Field Value
View Source
IsGroupPageCount
Declaration
public bool IsGroupPageCount
Field Value
View Source
IsPageCount
Declaration
Field Value
View Source
Declaration
Field Value
View Source
PartialPos
Declaration
Field Value
View Source
SumValue
Declaration
Field Value
View Source
Updated
Declaration
Field Value
View Source
Value
Declaration
Field Value
Properties
View Source
AgIniValue
Declaration
public string AgIniValue { get; set; }
Property Value
View Source
AgType
Declaration
public AggregateType AgType { get; set; }
Property Value
View Source
Aggregate
Declaration
public Aggregate Aggregate { get; set; }
Property Value
View Source
AutoContract
Declaration
public bool AutoContract { get; set; }
Property Value
View Source
AutoExpand
Declaration
public bool AutoExpand { get; set; }
Property Value
View Source
DataType
Declaration
public ParamType DataType { get; set; }
Property Value
View Source
Declaration
public string DisplayFormat { get; set; }
Property Value
View Source
Declaration
public string ExportDisplayFormat { get; set; }
Property Value
View Source
ExportDoNewLine
Declaration
public bool ExportDoNewLine { get; set; }
Property Value
View Source
ExportExpression
Declaration
public string ExportExpression { get; set; }
Property Value
View Source
ExportLine
Declaration
public int ExportLine { get; set; }
Property Value
View Source
ExportPosition
Declaration
public int ExportPosition { get; set; }
Property Value
View Source
ExportSize
Declaration
public int ExportSize { get; set; }
Property Value
View Source
ExportValue
Declaration
public Variant ExportValue { get; set; }
Property Value
View Source
Expression
Declaration
public string Expression { get; set; }
Property Value
View Source
GroupName
Declaration
public string GroupName { get; set; }
Property Value
View Source
IdenExpression
Declaration
[JsonIgnore]
[JsonIgnore]
public EvalIdenExpression IdenExpression { get; }
Property Value
View Source
Identifier
Declaration
public string Identifier { get; set; }
Property Value
View Source
IsPartial
Declaration
[JsonIgnore]
[JsonIgnore]
public bool IsPartial { get; }
Property Value
View Source
PrintNulls
Declaration
public bool PrintNulls { get; set; }
Property Value
View Source
PrintOnlyOne
Declaration
public bool PrintOnlyOne { get; set; }
Property Value
Methods
View Source
This procedure will print the item into the MetaFile, internal implementation
Declaration
protected override void DoPrint(PrintOut adriver, int aposx, int aposy, int newwidth, int newheight, MetaFile metafile, Point MaxExtent, ref bool PartialPrint)
Parameters
| Type |
Name |
Description |
| PrintOut |
adriver |
Report processing driver
|
| int |
aposx |
Horizontal position in twips
|
| int |
aposy |
Vertical position in twips
|
| int |
newwidth |
Width of the bounding box in twips
|
| int |
newheight |
Height of the bounding box in twips
|
| MetaFile |
metafile |
Destination MetaFile
|
| Point |
MaxExtent |
Maximum extension
|
| bool |
PartialPrint |
Returns true if some text will expand multiple pages
|
Overrides
View Source
Evaluate()
Declaration
View Source
GetClassName()
Internal function to determine the object type name
Declaration
protected override string GetClassName()
Returns
| Type |
Description |
| string |
Object type name
|
Overrides
View Source
GetExtension(PrintOut, Point, bool)
This procedure will return the current size of the printed item
Declaration
public override Point GetExtension(PrintOut adriver, Point MaxExtent, bool ForcePartial)
Parameters
| Type |
Name |
Description |
| PrintOut |
adriver |
Report processing driver
|
| Point |
MaxExtent |
Maximum extension
|
| bool |
ForcePartial |
|
Returns
Overrides
View Source
SetReport(BaseReport)
Declaration
public override void SetReport(BaseReport rp)
Parameters
Overrides
View Source
SubReportChanged(SubReportEvent, string)
This event is generated while report is processing to allow the report items to update contents
Declaration
public override void SubReportChanged(SubReportEvent newstate, string newgroup)
Parameters
| Type |
Name |
Description |
| SubReportEvent |
newstate |
New state for the subreport
|
| string |
newgroup |
New group if apply
|
Overrides
View Source
UpdateIsPageCount()
Declaration
public void UpdateIsPageCount()
Implements