Search Results for

    Show / Hide Table of Contents

    Class PrintOutExcel

    Report preocessing driver, capable of generate excel files

    Inheritance
    object
    PrintOut
    PrintOutExcel
    Implements
    IDisposable
    Inherited Members
    PrintOut.DefaultPrinterName
    PrintOut.ForcePrinterName
    PrintOut.Previewing
    PrintOut.PageSizeArray
    PrintOut.CurrentMetafile
    PrintOut.PRINTOUT_MAX_PAGES
    PrintOut.FromPage
    PrintOut.ToPage
    PrintOut.Copies
    PrintOut.FOrientation
    PrintOut.EmptyReportThrowException
    PrintOut.NoData
    PrintOut.DrawFound
    PrintOut.PageSizeName(int)
    PrintOut.Dispose()
    PrintOut.EndPage(MetaFile)
    PrintOut.SelectPrinter(PrinterSelectType)
    PrintOut.SetOrientation(OrientationType)
    PrintOut.DrawChart(Series, MetaFile, int, int, object)
    PrintOut.PreparePrint(MetaFile)
    PrintOut.ProcessNoDataToPrint()
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    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
    PrintOut.DrawPage(MetaFile, MetaPage)

    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
    PrintOut.EndDocument(MetaFile)

    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
    PrintOut.GetPageSize(out int)

    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
    PrintOut.GraphicExtent(MemoryStream, Point, int)

    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
    PrintOut.NewDocument(MetaFile)

    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
    PrintOut.NewPage(MetaFile, MetaPage)

    Print(MetaFile)

    Generate the excel file

    Declaration
    public override bool Print(MetaFile meta)
    Parameters
    Type Name Description
    MetaFile meta
    Returns
    Type Description
    bool
    Overrides
    PrintOut.Print(MetaFile)

    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
    PrintOut.SetPageSize(PageSizeDetail)

    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
    Overrides
    PrintOut.TextExtent(TextObjectStruct, Point)

    Implements

    IDisposable
    In this article
    Back to top Generated by DocFX