Search found 22 matches: prnstatus

Return to advanced search

Re: Isprinter and bluetooth

Image

the printer is on
the printer have a big roll of paper
the printer is near to my pc
and I have print a ticket now

then test with prnstatus.... not run
by Silvio.Falconi
Mon Oct 09, 2017 8:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Isprinter and bluetooth
Replies: 8
Views: 1228

Re: Isprinter and bluetooth

Hello Silvio, does PrnStatus work for you. Best regards, Otto #define PRINTER_STATUS_PENDING_DELETION 4 #define PRINTER_STATUS_PAPER_JAM 8 #define PRINTER_STATUS_PAPER_OUT 16 #define PRINTER_STATUS_MANUAL_FEED 32 #define PRINTER_STATUS_PAPER_PROBLEM ...
by Otto
Sat Oct 07, 2017 9:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Isprinter and bluetooth
Replies: 8
Views: 1228

Re: Test to see if USB Printer is ready

... your code .. I did see something similar in the \Samples.. Here is my code,.. I query for the port and the name .. I run both parameters through PrnStatus() .. and the USB printer cable has been removed: #include "Fivewin.ch"#define PRINTER_STATUS_OK           ...
by Rick Lipkin
Fri May 22, 2015 12:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Test to see if USB Printer is ready
Replies: 20
Views: 5842

Re: Test to see if USB Printer is ready

Dear Rick, FWH Function is PrnStatus( cPrinterName ), it works for me. PrnStatus() Retrieves the status of a printer. Syntax: PrnStatus( <cPrinter> ) --> nStatus  Parameters:  <cPrinter> The printer of which ...
by dutch
Fri May 22, 2015 2:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Test to see if USB Printer is ready
Replies: 20
Views: 5842

Re: How i can discover if my printer is off?

FWH-function : PrnStatus( <cPrinter> ) --> nStatus Parameters: <cPrinter> The printer of which the status is to be retrieved. Returns: <nStatus> One of the following values: #define PRINTER_STATUS_OK 0 #define ...
by ukoenig
Wed Feb 08, 2012 4:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How i can discover if my printer is off?
Replies: 2
Views: 865

Re: Printers

Hi all, the correct parameter for PrnStatus () is the printer name, not the port ! If specify a real printer name, the function returns 0 (PRINTER_STATUS_OK). But it does not return the real status of the printer. Windows can not get the correct ...
by StefanHaupt
Thu Jun 04, 2009 7:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printers
Replies: 11
Views: 2139

Re: Printers

Hello Stefan, The sample prnstat.prg shows : Function Main() local nStatus := PrnStatus( "LPT1:" ) MsgInfo( nStatus ) return nil I had a look at printdc.c ( subdirectory /winapi ) PRNSTATUS( PARAMS ) // cPrinter or cPrinterServer --> nStatus I have ...
by ukoenig
Tue Jun 02, 2009 12:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printers
Replies: 11
Views: 2139

Re: Printers

Hello Otto, I think it is possible, to add PrnStatus() inside the For Next. #define PRINTER_STATUS_OK                       0#define PRINTER_STATUS_PAUSED                   1#define PRINTER_STATUS_ERROR                    2#define PRINTER_STATUS_PENDING_DELETION ...
by ukoenig
Tue Jun 02, 2009 10:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printers
Replies: 11
Views: 2139

Esto lo he sacado de un ost de este foro: function IsPrint( QuePrinter ) LOCAL nStatus DEFAULT QuePrinter := "LPT1:" nStatus := PrnStatus( QuePrinter ) if nStatus < 1 ; return "Impressora OK" elseif nStatus = 1 ; return "Impressora Pausada" elseif nStatus = 2 ; return "Impressora com ...
by karinha
Wed Nov 12, 2008 11:34 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: comprobar si una impresora está fuera de línea o en línea
Replies: 6
Views: 1482

Esto lo he sacado de un ost de este foro: function IsPrint( QuePrinter ) LOCAL nStatus DEFAULT QuePrinter := "LPT1:" nStatus := PrnStatus( QuePrinter ) if nStatus < 1 ; return "Impressora OK" elseif nStatus = 1 ; return "Impressora Pausada" elseif nStatus = 2 ; return "Impressora com ...
by antolin
Wed Nov 12, 2008 7:06 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: comprobar si una impresora está fuera de línea o en línea
Replies: 6
Views: 1482

Hello , were can i find the function prnstatus ?

Thanks.
by MANOLO
Wed Jun 04, 2008 6:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: printer Function EnumPrinters with fwh
Replies: 11
Views: 4240

... IsAppThemed() IsInternet() IsWin64() IsWinVista() MsgCalc() PageGetMargins() PageSetup() PrnGetCollate() PrnGetPagNums() PrnGetSelection() PrnStatus() RegEnumValue() SetBalloon() SetGetColorFocus() SetTimePick() ShowIP() StretchBlt() TabGetRowCount() TimeZone() TransBmp() TvGetCheck() TvGetParent() ...
by Antonio Linares
Mon Feb 11, 2008 9:38 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN February / Febrero 2008 (8.02)
Replies: 1
Views: 2721

New FTDN February / Febrero 2008 (8.02)

... IsAppThemed() IsInternet() IsWin64() IsWinVista() MsgCalc() PageGetMargins() PageSetup() PrnGetCollate() PrnGetPagNums() PrnGetSelection() PrnStatus() RegEnumValue() SetBalloon() SetGetColorFocus() SetTimePick() ShowIP() StretchBlt() TabGetRowCount() TimeZone() TransBmp() TvGetCheck() TvGetParent() ...
by Antonio Linares
Sun Feb 10, 2008 8:18 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN February / Febrero 2008 (8.02)
Replies: 1
Views: 2721

function Main()

local nStatus := PrnStatus( "LPT1: ")

MsgInfo( nStatus )

// sempre retorna 4096

return nil
by Ari
Wed Nov 08, 2006 4:01 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TDosPrint y detectar estado de la impresora
Replies: 12
Views: 2874
Next

Return to advanced search