Search Results for

    Show / Hide Table of Contents

    Class PrintOutWinForms

    Report processing driver using Windows.Forms, it can preview, print, show a print dialog. This driver does not support interaction with the Report, like altering Report parameters in preview window. But is useful when working the already generated MetaFiles. The PrintOutReportWinForms at Reportman.Reporting.Forms provides the full interactive functionality like page setup or altering parameters at preview window.

    Inheritance
    object
    PrintOut
    PrintOutNet
    PrintOutPrint
    PrintOutWinForms
    PrintOutReportWinForms
    Implements
    IDisposable
    Inherited Members
    PrintOutPrint.overridedriver
    PrintOutPrint.UseStandardPrintController
    PrintOutPrint.ShowPrintProgress
    PrintOutPrint.DisableForwardOnly
    PrintOutPrint.FPagesPrinted
    PrintOutPrint.FBlackLines
    PrintOutPrint.FWhiteLines
    PrintOutPrint.doc
    PrintOutPrint.BrowsePaperSizes
    PrintOutPrint.AutoScalePrint
    PrintOutPrint.NewDocument(MetaFile)
    PrintOutPrint.SetOrientation(OrientationType)
    PrintOutPrint.GetPageSize(out int)
    PrintOutPrint.DrawPage(MetaFile, MetaPage)
    PrintOutPrint.UpdateHardMargins()
    PrintOutPrint.PreparePrint(MetaFile)
    PrintOutPrint.PaperSizeToQtIndex(PaperSize)
    PrintOutPrint.PageIndexToPaperRawKind(int, ref int, ref int)
    PrintOutPrint.InitPrinter(MetaFile)
    PrintOutPrint.EndDocument(MetaFile)
    PrintOutPrint.PrinterExists(string)
    PrintOutPrint.SelectPrinter(PrinterSelectType)
    PrintOutPrint.PaperSizeFromPageIndex(int)
    PrintOutPrint.OutputDevice
    PrintOutPrint.PagesPrinted
    PrintOutPrint.BlackLinesPrinted
    PrintOutPrint.WhiteLinesPrinted
    PrintOutNet.Scale
    PrintOutNet.OptimizeWMF
    PrintOutNet.HardMarginX
    PrintOutNet.HardMarginY
    PrintOutNet.UseHardMargin
    PrintOutNet.Output
    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.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)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing.Forms
    Assembly: Reportman.Drawing.Forms.dll
    Syntax
    public class PrintOutWinForms : PrintOutPrint, IDisposable
    Examples
    Report rp=new Report();
    rp.LoadFromFile("test.rep");
    PrintOutWinForms prw=new PrintOutWinForms;
    prw.Print(rp.MetaFile);

    Constructors

    PrintOutWinForms()

    Declaration
    public PrintOutWinForms()

    Fields

    FPreviewWindow

    Internal PreviewWinForms

    Declaration
    protected PreviewWinFormsControl FPreviewWindow
    Field Value
    Type Description
    PreviewWinFormsControl

    LargeButtons

    Declaration
    public bool LargeButtons
    Field Value
    Type Description
    bool

    MAX_SERIECOLORS

    Declaration
    public const int MAX_SERIECOLORS = 21
    Field Value
    Type Description
    int

    MainForm

    Set MainForm to avoid problems with modal dialogs

    Declaration
    public Form MainForm
    Field Value
    Type Description
    Form

    OnMail

    Declaration
    public SendMailEvent OnMail
    Field Value
    Type Description
    SendMailEvent

    ShowEmptyReportMessage

    Show a message when the report is empty (no data available to print)

    Declaration
    public bool ShowEmptyReportMessage
    Field Value
    Type Description
    bool

    ShowInTaskbar

    Set it to true to show an icon in task bar for the preview window

    Declaration
    public bool ShowInTaskbar
    Field Value
    Type Description
    bool

    ShowPrintDialog

    When the output is the printer, before processing, a standard print dialog will be shown to the user

    Declaration
    public bool ShowPrintDialog
    Field Value
    Type Description
    bool

    UseGDIPlus

    By default GDI+ is ude, if this is set to false the Internal GDI functions will be used

    Declaration
    public bool UseGDIPlus
    Field Value
    Type Description
    bool

    WindowMode

    Declaration
    public PreviewWindowMode WindowMode
    Field Value
    Type Description
    PreviewWindowMode

    previewmetafile

    Internal PreviewMetaFile

    Declaration
    protected PreviewMetaFile previewmetafile
    Field Value
    Type Description
    PreviewMetaFile

    Properties

    Preview

    Set preview if you want the output on the screen

    Declaration
    public bool Preview { get; set; }
    Property Value
    Type Description
    bool

    PreviewWindow

    Declaration
    public PreviewWinFormsControl PreviewWindow { get; }
    Property Value
    Type Description
    PreviewWinFormsControl

    SystemPreview

    Set this property to true, combined with Preview, to show the standard system preview dialog, instead of the Report Manager preview dialog.

    Declaration
    public bool SystemPreview { get; set; }
    Property Value
    Type Description
    bool

    Methods

    AddFunctionToChart(Chart, Series, SeriesItem)

    Declaration
    public static void AddFunctionToChart(Chart nchart, Series serie, SeriesItem sitem)
    Parameters
    Type Name Description
    Chart nchart
    Series serie
    SeriesItem sitem

    Dispose()

    Free memory consumed by graphics resources

    Declaration
    public override void Dispose()
    Overrides
    PrintOutNet.Dispose()

    DrawChart(Series, MetaFile, int, int, object)

    Declaration
    public override void DrawChart(Series nseries, MetaFile ametafile, int posx, int posy, object achart)
    Parameters
    Type Name Description
    Series nseries
    MetaFile ametafile
    int posx
    int posy
    object achart
    Overrides
    PrintOut.DrawChart(Series, MetaFile, int, int, object)

    DrawChartBitmap(Series)

    Declaration
    public Bitmap DrawChartBitmap(Series nseries)
    Parameters
    Type Name Description
    Series nseries
    Returns
    Type Description
    Bitmap

    DrawString(Graphics, string, Font, Brush, Rectangle, StringFormat)

    Declaration
    public override void DrawString(Graphics gr, string atext, Font font, Brush brush, Rectangle arec, StringFormat sformat)
    Parameters
    Type Name Description
    Graphics gr
    string atext
    Font font
    Brush brush
    Rectangle arec
    StringFormat sformat
    Overrides
    PrintOutNet.DrawString(Graphics, string, Font, Brush, Rectangle, StringFormat)

    DrawString(Graphics, string, Font, Brush, float, float, StringFormat)

    Declaration
    public override void DrawString(Graphics gr, string atext, Font font, Brush brush, float posx, float posy, StringFormat sformat)
    Parameters
    Type Name Description
    Graphics gr
    string atext
    Font font
    Brush brush
    float posx
    float posy
    StringFormat sformat
    Overrides
    PrintOutNet.DrawString(Graphics, string, Font, Brush, float, float, StringFormat)

    ExecutePrintDialog()

    Declaration
    public bool ExecutePrintDialog()
    Returns
    Type Description
    bool

    FormatFlatsToTextFormatFlags(StringFormat)

    Declaration
    public static TextFormatFlags FormatFlatsToTextFormatFlags(StringFormat oldflags)
    Parameters
    Type Name Description
    StringFormat oldflags
    Returns
    Type Description
    TextFormatFlags

    MeasureString(Graphics, string, Font, SizeF, StringFormat, out int, out int)

    Declaration
    public override SizeF MeasureString(Graphics gr, string atext, Font font, SizeF layoutarea, StringFormat sformat, out int charsfit, out int linesfit)
    Parameters
    Type Name Description
    Graphics gr
    string atext
    Font font
    SizeF layoutarea
    StringFormat sformat
    int charsfit
    int linesfit
    Returns
    Type Description
    SizeF
    Overrides
    PrintOutNet.MeasureString(Graphics, string, Font, SizeF, StringFormat, out int, out int)

    Print(MetaFile)

    Process a MetaFile, printing or previewing

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

    MetaFile to print

    Returns
    Type Description
    bool
    Overrides
    PrintOutPrint.Print(MetaFile)

    ProcessNoDataToPrint()

    When the user does not handle the no data to print event. A message is shown

    Declaration
    protected override void ProcessNoDataToPrint()
    Overrides
    PrintOut.ProcessNoDataToPrint()

    SelectDefaultPrinter(Form)

    Declaration
    public static bool SelectDefaultPrinter(Form MainForm = null)
    Parameters
    Type Name Description
    Form MainForm
    Returns
    Type Description
    bool

    SetReportEvents()

    Used in derived versions to manager events for report alteration (page setup and parameters)

    Declaration
    protected virtual void SetReportEvents()

    Implements

    IDisposable
    In this article
    Back to top Generated by DocFX