Search Results for

    Show / Hide Table of Contents

    Class RawPrinterHelper

    Provices functions for simple printing

    Inheritance
    System.Object
    RawPrinterHelper
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Simplic.Printing
    Assembly: Simplic.Printing.dll
    Syntax
    public class RawPrinterHelper

    Methods

    ClosePrinter(IntPtr)

    Declaration
    public static extern bool ClosePrinter(IntPtr hPrinter)
    Parameters
    Type Name Description
    System.IntPtr hPrinter
    Returns
    Type Description
    System.Boolean

    EndDocPrinter(IntPtr)

    Declaration
    public static extern bool EndDocPrinter(IntPtr hPrinter)
    Parameters
    Type Name Description
    System.IntPtr hPrinter
    Returns
    Type Description
    System.Boolean

    EndPagePrinter(IntPtr)

    Declaration
    public static extern bool EndPagePrinter(IntPtr hPrinter)
    Parameters
    Type Name Description
    System.IntPtr hPrinter
    Returns
    Type Description
    System.Boolean

    OpenPrinter(String, out IntPtr, IntPtr)

    Declaration
    public static extern bool OpenPrinter(string szPrinter, out IntPtr hPrinter, IntPtr pd)
    Parameters
    Type Name Description
    System.String szPrinter
    System.IntPtr hPrinter
    System.IntPtr pd
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    SendBytesToPrinter(String, IntPtr, Int32)

    Declaration
    public static bool SendBytesToPrinter(string szPrinterName, IntPtr pBytes, int dwCount)
    Parameters
    Type Name Description
    System.String szPrinterName
    System.IntPtr pBytes
    System.Int32 dwCount
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    SendFileToPrinter(String, String)

    Declaration
    public static bool SendFileToPrinter(string szPrinterName, string szFileName)
    Parameters
    Type Name Description
    System.String szPrinterName
    System.String szFileName
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    SendStringToPrinter(String, String)

    Declaration
    public static bool SendStringToPrinter(string szPrinterName, string szString)
    Parameters
    Type Name Description
    System.String szPrinterName
    System.String szString
    Returns
    Type Description
    System.Boolean

    StartDocPrinter(IntPtr, Int32, RawPrinterHelper.DOCINFOA)

    Declaration
    public static extern bool StartDocPrinter(IntPtr hPrinter, int level, RawPrinterHelper.DOCINFOA di)
    Parameters
    Type Name Description
    System.IntPtr hPrinter
    System.Int32 level
    RawPrinterHelper.DOCINFOA di
    Returns
    Type Description
    System.Boolean

    StartPagePrinter(IntPtr)

    Declaration
    public static extern bool StartPagePrinter(IntPtr hPrinter)
    Parameters
    Type Name Description
    System.IntPtr hPrinter
    Returns
    Type Description
    System.Boolean

    WritePrinter(IntPtr, IntPtr, Int32, out Int32)

    Declaration
    public static extern bool WritePrinter(IntPtr hPrinter, IntPtr pBytes, int dwCount, out int dwWritten)
    Parameters
    Type Name Description
    System.IntPtr hPrinter
    System.IntPtr pBytes
    System.Int32 dwCount
    System.Int32 dwWritten
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx