Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default printer name
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00616962
Message ID:
00617270
Views:
24
You undesand me right. I try to use those command in DLL in order to get Printer DC & I get error message - 'Unexpected error ...' (I do not undestand why) So I try to find another way doing this. Here is the code that I use:

DECLARE INTEGER CreateDC IN Win32API AS CreatePrinterDC STRING, STRING, STRING, STRING

---> Here I got error
lcPrinter = SET('PRINTER', 3)
---> Here I got error

*lcPrinter = SYS(2001,'PRINTER', 3)

IF !EMPTY(lcPrinter)
lhDC = INT(CreatePrinterDC('WINSPOOL', lcPrinter, NULL, NULL))
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform