Class PrintOutWPF
Render driver that lays out a report MetaFile into a WPF FixedDocument, building one fixed page per metafile page for on-screen preview and WPF-based printing.
Inherited Members
Namespace: Reportman.WPF
Assembly: Reportman.WPF.dll
Syntax
public class PrintOutWPF : PrintOut
Constructors
View SourcePrintOutWPF()
Declaration
public PrintOutWPF()
Properties
View SourceDocument
Declaration
public FixedDocument Document { get; }
Property Value
| Type | Description |
|---|---|
| FixedDocument |
Methods
View SourceDrawPage(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
View SourceEndDocument(MetaFile)
Finalization
Declaration
public override void EndDocument(MetaFile meta)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta | MetaFile to process |
Overrides
View SourceGetPageSize(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
View SourceGraphicExtent(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
View SourceNewDocument(MetaFile)
Initialization
Declaration
public override void NewDocument(MetaFile meta)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta | MetaFile to process |
Overrides
View SourceNewPage(MetaFile, MetaPage)
Creates a new page
Declaration
public override void NewPage(MetaFile meta, MetaPage page)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta | |
| MetaPage | page |
Overrides
View SourcePrint(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
View SourceSetOrientation(OrientationType)
Sets page orientation
Declaration
public override void SetOrientation(OrientationType PageOrientation)
Parameters
| Type | Name | Description |
|---|---|---|
| OrientationType | PageOrientation | Input value |
Overrides
View SourceSetPageSize(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
View SourceTextExtent(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 |