Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error 1957 with Windows 2000
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00761524
Message ID:
00761540
Vues:
34
How about other printing tasks:
- from VFP, not reports, LIST MEMORY TO PRINT or something like this
- printing from other applications: Notepad, Word
Do they create any error messages?
* * *
What GetPrinter function usually returns on that computer?

* * *
Try this code. It retrieves default printer name from the Registry. Is it the same name as GetPrinter returns?
DECLARE INTEGER GetProfileString IN kernel32;
	STRING lpApp, STRING lpKey, STRING lpDefault,;
	STRING @lpReturnedString, INTEGER nSize

LOCAL lcBuffer, lcPrinter, lcDriver, lcPort
lcBuffer = Repli(Chr(0), 120)
= GetProfileString("Windows", "Device", ",,,",;
	@lcBuffer, Len(lcBuffer))
lcBuffer = STRTRAN(lcBuffer, Chr(0), "")

? SUBSTR(lcBuffer, 1, AT(",", lcBuffer, 1)-1)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform