Class PrintOutWPF
Inherited Members
Namespace: Reportman.WPF
Assembly: Reportman.WPF.dll
Syntax
public class PrintOutWPF : PrintOut
Constructors
PrintOutWPF()
Declaration
public PrintOutWPF()
Properties
Document
Declaration
public FixedDocument Document { get; }
Property Value
| Type | Description |
|---|---|
| FixedDocument |
Methods
DrawPage(MetaFile, MetaPage)
Draw all objects of the page to current PDF file page
Declaration
public override void DrawPage(MetaFile meta, MetaPage page)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta | MetaFile containing the page |
| MetaPage | page | MetaPage to be drawn |
Overrides
EndDocument(MetaFile)
Finalization
Declaration
public override void EndDocument(MetaFile meta)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta | MetaFile to process |
Overrides
GetPageSize(out int)
Get page size
Declaration
public override Point GetPageSize(out int indexqt)
Parameters
| Type | Name | Description |
|---|---|---|
| int | indexqt | Output parameters, index for PageSizeArray |
Returns
| Type | Description |
|---|---|
| Point | Page size in twips |
Overrides
GraphicExtent(MemoryStream, Point, int)
Obtain graphic extent
Declaration
public override Point GraphicExtent(MemoryStream astream, Point extent, int dpi)
Parameters
| Type | Name | Description |
|---|---|---|
| MemoryStream | astream | Stream containing a bitmap or a Jpeg image |
| Point | extent | Initial bounding box |
| int | dpi | Resolution in Dots per inch of the image |
Returns
| Type | Description |
|---|---|
| Point | Size in twips of the image |
Overrides
NewDocument(MetaFile)
Initialization
Declaration
public override void NewDocument(MetaFile meta)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta | MetaFile to process |
Overrides
NewPage(MetaFile, MetaPage)
Creates a new page
Declaration
public override void NewPage(MetaFile meta, MetaPage page)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta | |
| MetaPage | page |
Overrides
Print(MetaFile)
Generate the Document a single pass
Declaration
public override bool Print(MetaFile meta)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
SetOrientation(OrientationType)
Sets page orientation
Declaration
public override void SetOrientation(OrientationType PageOrientation)
Parameters
| Type | Name | Description |
|---|---|---|
| OrientationType | PageOrientation | Input value |
Overrides
SetPageSize(PageSizeDetail)
The driver must set a new page size
Declaration
public override Point SetPageSize(PageSizeDetail psize)
Parameters
| Type | Name | Description |
|---|---|---|
| PageSizeDetail | psize |
Returns
| Type | Description |
|---|---|
| Point |
Overrides
TextExtent(TextObjectStruct, Point)
Obtain text extent
Declaration
public override Point TextExtent(TextObjectStruct aobj, Point extent)
Parameters
| Type | Name | Description |
|---|---|---|
| TextObjectStruct | aobj | |
| Point | extent |
Returns
| Type | Description |
|---|---|
| Point |