Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printer not ready
Message
From
29/08/2010 19:49:59
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01479131
Message ID:
01479142
Views:
51
>>>Hi everybody,
>>>
>>>Can a call to GetPrinter() function produce 'Printer not ready' error?
>>>
>>>Thanks in advance.
>>
>>http://www.ml-consult.co.uk/foxst-14.htm
>
>Thanks. From that page:
>>What would happen if a user runs my application on a computer that has no printer driver installed?
>
>One or more run-time errors will be generated whenever the application tries to perform a printer-related task. The errors will typically be "Printer not ready", "Error loading printer driver", or both. They will occur when the application tries to print a report, and also when you execute SET PRINTER, GETPRINTER() and several similar commands and functions. You can, however, successfully preview a report.
>
>To prevent these run-time errors, test the value returned from APRINTERS() before performing a printer-related task. If this value is zero, it means that no printer drivers are installed.

>
>I may add this check just in case. The strange thing is that the user reported an error in the previous version of the application and not in the new one and I'm sure the code is the same.
>
>Is it possible to get this error when there are printers installed?

Is the printer off-line or perhaps the drivers got uninstalled or not there?
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform