Public static bool SendBytesToPrinter(string szPrinterName, IntPtr pBytes, Int32 dwCount)īool bSuccess = false // Assume failure unless you specifically succeed. ![]() Returns true on success, false on failure. of bytes, the function sends those bytes to the print queue. When the function is given a printer name and an unmanaged array Public static extern bool WritePrinter(IntPtr hPrinter, IntPtr pBytes, Int32 dwCount, out Int32 dwWritten) Public static extern bool EndPagePrinter(IntPtr hPrinter) Public static extern bool StartPagePrinter(IntPtr hPrinter) Public static extern bool EndDocPrinter(IntPtr hPrinter) Public static extern bool StartDocPrinter(IntPtr hPrinter, Int32 level, DOCINFOA di) ![]() Public static extern bool ClosePrinter(IntPtr hPrinter) Public static extern bool OpenPrinter( string szPrinter, out IntPtr hPrinter, IntPtr pd)
0 Comments
Leave a Reply. |