Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 1957 with Windows 2000
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00761524
Message ID:
00761540
Views:
35
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform