Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy file .... to lpt1
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00821423
Message ID:
00882587
Views:
23
>Hi Metin,
>
>Try this code:
>
>DECLARE INTEGER CopyFile IN kernel32;
>	STRING lpSrcFile, STRING lpDstFile, INTEGER bFail
>	
>= CopyFile(cFilename, 'LPT1:', 0)
>
>where cFilename is a text file you want to print.
>
>No DOS window -- guaranteed :)
>
>Network printer names like \\MYSERVER\EPSON can be used as well as LPT1:

Anatoliy,

I keep coming back to you for these answers... I find that CopyFile(cFilename, 'LPT1:', 0) works, but CopyFile(cFilename, '\\MYSERVER\EPSON', 0) does not. Am I doing something wrong?

Thank you very much,

Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform