IsPrinter() & XP

User avatar
avista
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Post by avista »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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

Antonio Linares
www.fivetechsoft.com
User avatar
avista
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Post by avista »

Yes msdos Clipper application ...

Regards,
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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

? FOpen( "LPT1" )

and see what you get
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
avista
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Post by avista »

Hi Antonio,

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

Regards,
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
User avatar
avista
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Post by avista »

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,
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
Post Reply