Search Results for

    Show / Hide Table of Contents

    Class PrintOutPrint

    Print driver implementing output to printer, it does not allow showing print dialog becuase it does not have dependencies on Windows.Forms

    Inheritance
    object
    PrintOut
    PrintOutNet
    PrintOutPrint
    PrintOutWinForms
    Implements
    IDisposable
    Inherited Members
    PrintOutNet.Scale
    PrintOutNet.OptimizeWMF
    PrintOutNet.HardMarginX
    PrintOutNet.HardMarginY
    PrintOutNet.UseHardMargin
    PrintOutNet.Output
    PrintOutNet.Dispose()
    PrintOutNet.GraphicExtent(MemoryStream, Point, int)
    PrintOutNet.TextExtent(TextObjectStruct, Point)
    PrintOutNet.SetPageSize(PageSizeDetail)
    PrintOutNet.FontFromObject(MetaPage, MetaObjectText)
    PrintOutNet.FontFromStruct(TextObjectStruct)
    PrintOutNet.IntAlignToStringFormat(int, bool, bool, bool)
    PrintOutNet.MetaObjectToStringFormat(MetaObjectText)
    PrintOutNet.MetStructToStringFormat(TextObjectStruct)
    PrintOutNet.DrawString(Graphics, string, Font, Brush, Rectangle, StringFormat)
    PrintOutNet.DrawString(Graphics, string, Font, Brush, float, float, StringFormat)
    PrintOutNet.MeasureString(Graphics, string, Font, SizeF, StringFormat, out int, out int)
    PrintOutNet.DrawObject(Graphics, MetaPage, MetaObject)
    PrintOutNet.TextRectJustify(Graphics, Rectangle, TextObjectStruct, Font, SolidBrush)
    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.NewPage(MetaFile, MetaPage)
    PrintOut.EndPage(MetaFile)
    PrintOut.DrawChart(Series, MetaFile, int, int, object)
    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 PrintOutPrint : PrintOutNet, IDisposable

    Constructors

    PrintOutPrint()

    Constructor

    Declaration
    public PrintOutPrint()

    Fields

    AutoScalePrint

    Declaration
    public bool AutoScalePrint
    Field Value
    Type Description
    bool

    BrowsePaperSizes

    When BrowsePaperSizes is true, the print driver will browse all paper sizes on the print server until it finds the correct page size. This procedure can be very slow, specially if the printer is a network printer, you can disable this browsing

    Declaration
    public bool BrowsePaperSizes
    Field Value
    Type Description
    bool

    DisableForwardOnly

    Internal property, when this option is set, the printes pages will remain in memory this is useful for printing multiple copies or process the generated MetaFile later

    Declaration
    protected bool DisableForwardOnly
    Field Value
    Type Description
    bool

    FBlackLines

    Declaration
    protected int FBlackLines
    Field Value
    Type Description
    int

    FPagesPrinted

    Declaration
    protected int FPagesPrinted
    Field Value
    Type Description
    int

    FWhiteLines

    Declaration
    protected int FWhiteLines
    Field Value
    Type Description
    int

    ShowPrintProgress

    Declaration
    public bool ShowPrintProgress
    Field Value
    Type Description
    bool

    UseStandardPrintController

    Declaration
    public bool UseStandardPrintController
    Field Value
    Type Description
    bool

    doc

    Current PrintDocument

    Declaration
    public PrintDocument doc
    Field Value
    Type Description
    PrintDocument

    overridedriver

    Declaration
    protected PrintOut overridedriver
    Field Value
    Type Description
    PrintOut

    Properties

    BlackLinesPrinted

    Declaration
    public int BlackLinesPrinted { get; }
    Property Value
    Type Description
    int

    OutputDevice

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

    PagesPrinted

    Declaration
    public int PagesPrinted { get; }
    Property Value
    Type Description
    int

    WhiteLinesPrinted

    Declaration
    public int WhiteLinesPrinted { get; }
    Property Value
    Type Description
    int

    Methods

    DrawPage(MetaFile, MetaPage)

    Draw a page to the print surface

    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
    PrintOutNet.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)

    GetPageSize(out int)

    Get current page size, depending on default printed

    Declaration
    public override Point GetPageSize(out int indexqt)
    Parameters
    Type Name Description
    int indexqt

    Output parameter, index on PageSizeArray

    Returns
    Type Description
    Point
    Overrides
    PrintOutNet.GetPageSize(out int)

    InitPrinter(MetaFile)

    Select printer specified in the MetaFile

    Declaration
    public void InitPrinter(MetaFile meta)
    Parameters
    Type Name Description
    MetaFile meta

    MetaFile, the PrinterSelect property is used to select the printer

    NewDocument(MetaFile)

    The procedure creates a new PrintDocument

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

    PageIndexToPaperRawKind(int, ref int, ref int)

    Converts a PageSizeArray index to a RawKind, the RawKind index is only available on .Net 2.x

    Declaration
    public static int PageIndexToPaperRawKind(int index, ref int rwidth, ref int rheight)
    Parameters
    Type Name Description
    int index

    Index in the PageSizeArray

    int rwidth

    It's filled with the width of the paper in inch thousands

    int rheight

    It's filled with the height of the paper in inch thousands

    Returns
    Type Description
    int

    RawKind value

    PaperSizeFromPageIndex(int)

    Declaration
    public static PaperSize PaperSizeFromPageIndex(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    PaperSize

    PaperSizeToQtIndex(PaperSize)

    Find the PageSizeArray index given a PaperSize

    Declaration
    public static int PaperSizeToQtIndex(PaperSize psize)
    Parameters
    Type Name Description
    PaperSize psize

    PaperSize structure

    Returns
    Type Description
    int

    Integer index to PageSizeArray

    PreparePrint(MetaFile)

    Assign events to the PrintDocument and assign page settings

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

    Print(MetaFile)

    Prints a MetaFile

    Declaration
    public override bool Print(MetaFile meta)
    Parameters
    Type Name Description
    MetaFile meta

    MetaFile to print

    Returns
    Type Description
    bool
    Overrides
    PrintOut.Print(MetaFile)

    PrinterExists(string)

    Declaration
    public static bool PrinterExists(string printername)
    Parameters
    Type Name Description
    string printername
    Returns
    Type Description
    bool

    SelectPrinter(PrinterSelectType)

    The driver must select a printer

    Declaration
    public override void SelectPrinter(PrinterSelectType PrinterSelect)
    Parameters
    Type Name Description
    PrinterSelectType PrinterSelect
    Overrides
    PrintOut.SelectPrinter(PrinterSelectType)

    SetOrientation(OrientationType)

    Set paper orientation

    Declaration
    public override void SetOrientation(OrientationType PageOrientation)
    Parameters
    Type Name Description
    OrientationType PageOrientation
    Overrides
    PrintOut.SetOrientation(OrientationType)

    UpdateHardMargins()

    Update HardMargin values from current printer driver

    Declaration
    protected void UpdateHardMargins()

    Implements

    IDisposable
    In this article
    Back to top Generated by DocFX