Alaska Software Inc. - printer status
Username: Password:
AuthorTopic: printer status
Robin Schillingprinter status
on Mon, 11 Sep 2006 13:16:47 +0200
Hi all 

I search faster way to get the printer status.

If the printer is “Printer is not found, no connection” status,
Xbase++ status request take a long time, over 30 seconds.

Example:

FUNCTION TESTPrinter(cPrinter)
  oPrint :=XbpPrinter():new()
  oPrint:create( cPrinter )
  nRet := oPrint:printerStatus()  ß take 30 seconds 
  oPrint:destroy()
RETURN nRet

Is there any other faster options?
Regedit or Rundll32? 

Thanks
Michael
Joe Carrick Re: printer status
on Mon, 11 Sep 2006 07:19:56 -0700
Hi Robin,

oXbp := XbpPrinter():new()
aPrinterNames := oXbp:list()

if empty(aPrinterNames)
	 no printers installed
endif

HTH, Joe

Robin Schilling wrote:
> Hi all 
> 
> I search faster way to get the printer status.
> 
> If the printer is “Printer is not found, no connection” status,
> Xbase++ status request take a long time, over 30 seconds.
> 
> Example:
> 
> FUNCTION TESTPrinter(cPrinter)
>   oPrint :=XbpPrinter():new()
>   oPrint:create( cPrinter )
>   nRet := oPrint:printerStatus()  ß take 30 seconds 
>   oPrint:destroy()
> RETURN nRet
> 
> Is there any other faster options?
> Regedit or Rundll32? 
> 
> Thanks
> Michael
AUGE_OHRRe: printer status
on Mon, 11 Sep 2006 18:46:06 +0200
hi,

> I search faster way to get the printer status.
>
> If the printer is "Printer is not found, no connection" status,
> Xbase++ status request take a long time, over 30 seconds.

please do no "cross post" msg

see my Answer in "public.xbase++.generic"

greetings by OHR
Jimmy