The GETPRINTERS() function behaves differently based on the operating system in Visual FoxPro 5.0 and later versions (220157)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Windows 7.0
- Microsoft Visual FoxPro 8.0
- Microsoft Visual FoxPro 9.0 Professional Edition
This article was previously published under Q220157 SYMPTOMSIn Microsoft Visual FoxPro
5.0 or later versions, the GETPRINTERS() function produces both a different dialog and different results when querying printers from a computer that is running Microsoft Windows 95 or 98 as opposed to Windows NT 4.0, Windows 2000, Windows XP, or Windows Server 2003 .
RESOLUTION
As a workaround, use the APRINTERS() function to store the available printers into an array. Also, if you want to choose the printer when running a report, add the PROMPT clause to the REPORT FORM command.
Modification Type: | Major | Last Reviewed: | 2/18/2005 |
---|
Keywords: | kbpending kbprb kbXBase KB220157 |
---|
|