Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetDefaultPrinter Problem
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01131682
Message ID:
01131683
Views:
11
This message has been marked as the solution to the initial question of the thread.
>The code below works fine under Xp but gives an error under 98. Error 1754 - Cannot find entry point "name" in the DLL
>
>Declare GetDefaultPrinter In winspool.drv String @ cPrtName, Integer @ nBuffLength
>cPrtName = Space(255)
>If GetDefaultPrinter(@cPrtName, Len(cPrtName)) = .T.
>	lcPrinter = Substr(cPrtName, 1, Len(Alltrim(cPrtName)) - 1)
>Endif
>
From MSDN Help:
Windows 95/98/Me: Unsupported.

Why not use:
SET([PRINTER],2) && Default Windows Printer name
SET([PRINTER],3) && Default VFP Printer name
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform