Search Results for

    Show / Hide Table of Contents

    Class PrintOutText

    Inheritance
    object
    PrintOut
    PrintOutText
    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.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.dll
    Syntax
    public class PrintOutText : PrintOut, IDisposable

    Constructors

    PrintOutText()

    Constructo and initialization

    Declaration
    public PrintOutText()

    Fields

    DEFAULT_LINESPERINCH

    Declaration
    public const int DEFAULT_LINESPERINCH = 6
    Field Value
    Type Description
    int

    FPageHeight

    Declaration
    public int FPageHeight
    Field Value
    Type Description
    int

    FPageWidth

    Declaration
    public int FPageWidth
    Field Value
    Type Description
    int

    FPrinterDriver

    Declaration
    public string FPrinterDriver
    Field Value
    Type Description
    string

    ForceDriverName

    Declaration
    public string ForceDriverName
    Field Value
    Type Description
    string

    FullPlain

    Declaration
    public bool FullPlain
    Field Value
    Type Description
    bool

    OverrideOemConvert

    Declaration
    public PrintOutText.OemConvertOverride OverrideOemConvert
    Field Value
    Type Description
    PrintOutText.OemConvertOverride

    PrintResultStream

    Declaration
    public MemoryStream PrintResultStream
    Field Value
    Type Description
    MemoryStream

    blacklines

    Declaration
    public int blacklines
    Field Value
    Type Description
    int

    whitelines

    Declaration
    public int whitelines
    Field Value
    Type Description
    int

    Properties

    PrintResult

    Declaration
    public string PrintResult { get; }
    Property Value
    Type Description
    string

    Methods

    CalcCharWidth(char, PrintStepType)

    Declaration
    public double CalcCharWidth(char charcode, PrintStepType step)
    Parameters
    Type Name Description
    char charcode
    PrintStepType step
    Returns
    Type Description
    double

    CalculateTextExtent(string, ref Rectangle, bool, bool, PrintStepType, bool)

    Declaration
    public void CalculateTextExtent(string text, ref Rectangle rect, bool wordbreak, bool singleline, PrintStepType fontstep, bool doclip)
    Parameters
    Type Name Description
    string text
    Rectangle rect
    bool wordbreak
    bool singleline
    PrintStepType fontstep
    bool doclip

    CalculateTextExtent2(string, ref Rectangle, bool, bool, PrintStepType)

    Declaration
    public void CalculateTextExtent2(string text, ref Rectangle rect, bool WordBreak, bool singleline, PrintStepType fontstep)
    Parameters
    Type Name Description
    string text
    Rectangle rect
    bool WordBreak
    bool singleline
    PrintStepType fontstep

    DoTextOut(int, int, string, int, PrintStepType, bool, int, bool)

    Declaration
    public void DoTextOut(int x, int y, string text, int linewidth, PrintStepType fontstep, bool rightoleft, int fontstyle, bool red)
    Parameters
    Type Name Description
    int x
    int y
    string text
    int linewidth
    PrintStepType fontstep
    bool rightoleft
    int fontstyle
    bool red

    DrawObject(MetaFile, MetaPage, MetaObject)

    Declaration
    public void DrawObject(MetaFile meta, MetaPage page, MetaObject aobj)
    Parameters
    Type Name Description
    MetaFile meta
    MetaPage page
    MetaObject aobj

    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)

    EncodeLine(PrintLine, int, bool)

    Declaration
    public byte[] EncodeLine(PrintLine Line, int index, bool plain)
    Parameters
    Type Name Description
    PrintLine Line
    int index
    bool plain
    Returns
    Type Description
    byte[]

    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)

    EndPage(MetaFile)

    The driver should end current page

    Declaration
    public override void EndPage(MetaFile meta)
    Parameters
    Type Name Description
    MetaFile meta
    Overrides
    PrintOut.EndPage(MetaFile)

    FillEscapes()

    Declaration
    public void FillEscapes()

    FontSizeToStep(short, PrintStepType)

    Declaration
    public static PrintStepType FontSizeToStep(short FontSize, PrintStepType select)
    Parameters
    Type Name Description
    short FontSize
    PrintStepType select
    Returns
    Type Description
    PrintStepType

    GetBlankLine(PrintStepType)

    Declaration
    public string GetBlankLine(PrintStepType fontstep)
    Parameters
    Type Name Description
    PrintStepType fontstep
    Returns
    Type Description
    string

    GetColumnNumber(int, PrintStepType)

    Declaration
    public int GetColumnNumber(int posx, PrintStepType fontstep)
    Parameters
    Type Name Description
    int posx
    PrintStepType fontstep
    Returns
    Type Description
    int

    GetEscape(PrinterRawOperation)

    Declaration
    public byte[] GetEscape(PrinterRawOperation op)
    Parameters
    Type Name Description
    PrinterRawOperation op
    Returns
    Type Description
    byte[]

    GetFontStepEscape(PrintStepType)

    Declaration
    public byte[] GetFontStepEscape(PrintStepType nstep)
    Parameters
    Type Name Description
    PrintStepType nstep
    Returns
    Type Description
    byte[]

    GetLineIndex(int)

    Declaration
    public int GetLineIndex(int posy)
    Parameters
    Type Name Description
    int posy
    Returns
    Type Description
    int

    GetPageSize(out int)

    The driver must return the default page size

    Declaration
    public override Point GetPageSize(out int indexqt)
    Parameters
    Type Name Description
    int indexqt
    Returns
    Type Description
    Point
    Overrides
    PrintOut.GetPageSize(out int)

    GraphicExtent(MemoryStream, Point, int)

    The driver must return the image extent in twips

    Declaration
    public override Point GraphicExtent(MemoryStream astream, Point extent, int dpi)
    Parameters
    Type Name Description
    MemoryStream astream
    Point extent
    int dpi
    Returns
    Type Description
    Point
    Overrides
    PrintOut.GraphicExtent(MemoryStream, Point, int)

    NearestFontStep(PrintStepType)

    Declaration
    public PrintStepType NearestFontStep(PrintStepType fontstep)
    Parameters
    Type Name Description
    PrintStepType fontstep
    Returns
    Type Description
    PrintStepType

    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)

    Print method, it the PreparePrint, the driver should override this to perform additional actions

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

    RecalcSize()

    Declaration
    public void RecalcSize()

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

    StepToTwips(PrintStepType)

    Declaration
    public double StepToTwips(PrintStepType step)
    Parameters
    Type Name Description
    PrintStepType step
    Returns
    Type Description
    double

    TextExtent(TextObjectStruct, Point)

    The driver must return the text extent in twips

    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)

    TextRect(Rectangle, string, int, bool, bool, bool, PrintStepType, int, bool)

    Declaration
    public void TextRect(Rectangle arect, string text, int alignment, bool clipping, bool wordbreak, bool righttoleft, PrintStepType fontstep, int fontstyle, bool red)
    Parameters
    Type Name Description
    Rectangle arect
    string text
    int alignment
    bool clipping
    bool wordbreak
    bool righttoleft
    PrintStepType fontstep
    int fontstyle
    bool red

    WriteCurrentPage(bool)

    Declaration
    public void WriteCurrentPage(bool cutclearlines)
    Parameters
    Type Name Description
    bool cutclearlines

    WriteInit()

    Declaration
    public void WriteInit()

    WriteInterLine()

    Declaration
    public void WriteInterLine()

    WritePageSize()

    Declaration
    public void WritePageSize()

    Implements

    IDisposable
    In this article
    Back to top Generated by DocFX