Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy file .... to lpt1
Message
From
19/08/2003 23:50:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
19/08/2003 10:54:49
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00821423
Message ID:
00821670
Views:
22
>I have to use like "copy file eltron.txt to lpt1" command. in some computers that cause error 1102 Cannot create file lpt1 (but altough it prints).
>
>I solve that with use !copy file eltron.txt >lpt1 . but it cause a ms-dos window splash.
>
>Why vfp don't get this error some machines? I can't found any reason.

How about loading the data to a variable (in VFP 6, this is easily done with FileToStr()), and then sending the information directly to the printer with the "???" command?

You may also have to SET PRINTER first.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform