>I have serious problems with following functions in 'Visual Foxpro 7':
> - printstatus()
> - sys(13)
> Whay this functions always returns true ?
> If printer is ofline this functions returns true. If I dont have inasteled
> any printers in my system this functions too returns true !!! My opearation system is
> 'Windows Profesional 2000'
These are older functions, from the times where FoxPro/DOS printed directly to printer. Already with FoxPro/Windows, the problems arised: information was usually sent to the printer queue, and not directly to the printer - and the printer queue was always available.
This explains the logic of the situation, but I have no idea how to detect whether the printer is available.
I do not consider it important either: the printer can be available, but run out of paper in the middle of a report, or the user can turn the printer off. This means that in any case, you have to give the user the option of re-printing a report.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)