Class PrintItem
Basic class providing more basic functionality this item provides printing capability and some events
Implements
Inherited Members
Namespace: Reportman.Reporting
Assembly: Reportman.Reporting.dll
Syntax
public class PrintItem : ReportItem, IDisposable
Constructors
PrintItem()
Constructor
Declaration
public PrintItem()
Fields
LastExtent
Last calculated extent at runtime, while processing the report
Declaration
public Point LastExtent
Field Value
| Type | Description |
|---|---|
| Point |
PrintHeight
Height in twips of the printable item, variable at runtime
Declaration
public int PrintHeight
Field Value
| Type | Description |
|---|---|
| int |
PrintWidth
Width in twips of the printable item, variable at runtime
Declaration
public int PrintWidth
Field Value
| Type | Description |
|---|---|
| int |
SelectionIndex
Selecction index
Declaration
public int SelectionIndex
Field Value
| Type | Description |
|---|---|
| int |
SelectionRectangle
Declaration
public Rectangle SelectionRectangle
Field Value
| Type | Description |
|---|---|
| Rectangle |
Visible
Visible will determine if the item must be shown at design time
Declaration
public bool Visible
Field Value
| Type | Description |
|---|---|
| bool |
Properties
DoAfterPrint
Expression evaluated after printing the item
Declaration
public string DoAfterPrint { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DoBeforePrint
Expression evaluated before printing the item
Declaration
public string DoBeforePrint { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Height
Height in twips of the printable item
Declaration
public int Height { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
PrintCondition
When this property is not empty, it will be evaluated by the reporting engine, if the result is false, the item will not print
Declaration
public string PrintCondition { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Width
Width in twips of the printable item
Declaration
public int Width { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
DoPrint(PrintOut, int, int, int, int, MetaFile, Point, ref bool)
This procedure will print the item into the MetaFile, internal implementation
Declaration
protected virtual 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 |
EvaluatePrintCondition()
Declaration
public bool EvaluatePrintCondition()
Returns
| Type | Description |
|---|---|
| bool | Returns true if the print condition is empty or evaluated to true |
ExecuteAfterPrint()
Internal implementation for actions to do after printing the item, in this base class the DoAfterPrint expression will be evaluated
Declaration
protected void ExecuteAfterPrint()
ExecuteBeforePrint()
Internal implementation for actions to do before printing the item, in this base class the DoBeforePrint expression will be evaluated
Declaration
protected void ExecuteBeforePrint()
GetExtension(PrintOut, Point, bool)
This procedure will return the current size of the printed item
Declaration
public virtual Point GetExtension(PrintOut adriver, Point MaxExtent, bool ForcePartial)
Parameters
| Type | Name | Description |
|---|---|---|
| PrintOut | adriver | Report processing driver |
| Point | MaxExtent | Maximum extension |
| bool | ForcePartial |
Returns
| Type | Description |
|---|---|
| Point |
Print(PrintOut, int, int, int, int, MetaFile, Point, ref bool)
This procedure will print the item into the MetaFile
Declaration
public void Print(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 |
SubReportChanged(SubReportEvent, string)
This event is generated while report is processing to allow the report items to update contents
Declaration
public virtual void SubReportChanged(SubReportEvent newstate, string newgroup)
Parameters
| Type | Name | Description |
|---|---|---|
| SubReportEvent | newstate | New state for the subreport |
| string | newgroup | New group if apply |