Class PrintOutExcel
Report preocessing driver, capable of generate excel files
Implements
Inherited Members
Namespace: Reportman.Drawing
Assembly: Reportman.Drawing.Windows.dll
Syntax
public class PrintOutExcel : PrintOut, IDisposable
Constructors
PrintOutExcel()
Constructo and initialization
Declaration
public PrintOutExcel()
Fields
ExcelFormat
Declaration
public ExcelFileFormat ExcelFormat
Field Value
| Type | Description |
|---|---|
| ExcelFileFormat |
FileName
Excel filename
Declaration
public string FileName
Field Value
| Type | Description |
|---|---|
| string |
OneSheet
Set this property to force the excel to be conatained only in one sheet
Declaration
public bool OneSheet
Field Value
| Type | Description |
|---|---|
| bool |
Precision
Declaration
public int Precision
Field Value
| Type | Description |
|---|---|
| int |
Visible
Excel visibility
Declaration
public bool Visible
Field Value
| Type | Description |
|---|---|
| bool |
Methods
CheckProgress(bool)
Declaration
protected void CheckProgress(bool finished)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | finished |
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)
The driver should do cleanup here, a print driver should finish print document.
Declaration
public override void EndDocument(MetaFile meta)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta |
Overrides
FileFormatFromFilename(string)
Declaration
public static ExcelFileFormat FileFormatFromFilename(string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename |
Returns
| Type | Description |
|---|---|
| ExcelFileFormat |
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)
The driver should do initialization here, a print driver should start a print document, while a preview driver should initialize a bitmap
Declaration
public override void NewDocument(MetaFile meta)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta |
Overrides
NewPage(MetaFile, MetaPage)
The driver should start 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 excel file
Declaration
public override bool Print(MetaFile meta)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
PrintObject(object, MetaPage, MetaObject, int, int, SortedList, SortedList, string, int, int, double)
Declaration
public static void PrintObject(object sh, MetaPage page, MetaObject obj, int dpix, int dpiy, SortedList rows, SortedList columns, string FontName, int FontSize, int rowinit, double Precision)
Parameters
| Type | Name | Description |
|---|---|---|
| object | sh | |
| MetaPage | page | |
| MetaObject | obj | |
| int | dpix | |
| int | dpiy | |
| SortedList | rows | |
| SortedList | columns | |
| string | FontName | |
| int | FontSize | |
| int | rowinit | |
| double | Precision |
SetPageSize(PageSizeDetail)
Sets page size
Declaration
public override Point SetPageSize(PageSizeDetail psize)
Parameters
| Type | Name | Description |
|---|---|---|
| PageSizeDetail | psize | Input value |
Returns
| Type | Description |
|---|---|
| Point | Size in twips of the page |
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 |