FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper IsPrinter() & XP
Posts: 301
Joined: Fri Jun 01, 2007 09:07 AM
IsPrinter() & XP
Posted: Fri Aug 15, 2008 10:02 AM

Antonio,

With my fivewin applications is everything ok .... i am usualy using preview and i dont care about printing and i dont have problems ...
but i still use some ONLY clipper application (if you read first post) and i have problems with IsPrinter() function becouse under XP returning always .t.

Best regards,
and i am sorry if i informed you wrong

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
IsPrinter() & XP
Posted: Fri Aug 15, 2008 11:18 AM

Its ok, no problem. So you mean a msdos Clipper application, right ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 301
Joined: Fri Jun 01, 2007 09:07 AM
IsPrinter() & XP
Posted: Fri Aug 15, 2008 01:00 PM

Yes msdos Clipper application ...

Regards,

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
IsPrinter() & XP
Posted: Fri Aug 15, 2008 06:04 PM

Have you tried to open "LPT1" as a file ?

? FOpen( "LPT1" )

and see what you get

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 301
Joined: Fri Jun 01, 2007 09:07 AM
IsPrinter() & XP
Posted: Mon Aug 18, 2008 07:36 AM

Hi Antonio,

FOpen( "LPT1" ) return Error BASE/1066 Argument error: Conditional

Regards,

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
IsPrinter() & XP
Posted: Mon Aug 18, 2008 10:05 AM

Is it a local printer or a remote printer ?

Have a look here:

http://www.codeguru.com/cpp/w-p/printin ... .php/c2949

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 301
Joined: Fri Jun 01, 2007 09:07 AM
IsPrinter() & XP
Posted: Wed Aug 20, 2008 08:52 AM

Yes it is a local printer
and i only need to check if printer on LPT1 ready.
Clipper function IsPRinter() under XP return always .t. becouse of spooling.
IF there is no printer or not ready program is blocked and waithing to finish printing.

I checked

http://www.codeguru.com/cpp/w-p/printin ... .php/c2949
but not going under clipper.

Regards,

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
IsPrinter() & XP
Posted: Thu Aug 21, 2008 06:55 AM

Please show me the exact source code that you are using here:

FOpen( "LPT1" ) return Error BASE/1066 Argument error: Conditional

What conditional is it ?

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion