Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetDefaultPrinter Problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01131682
Message ID:
01131683
Vues:
12
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform