Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing a file directly to a printer
Message
From
17/07/2007 14:12:36
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01241205
Message ID:
01241219
Views:
21
This message has been marked as the solution to the initial question of the thread.
lcText = filetostr("myfile.txt")

lcPrinter = getprinter()
if !empty(lcPrinter)
	set printer to name (lcPrinter)
	set printer on
	set printer font 'Courier',12  && choose your font here
	??? lcText
	set printer off
endif
>I create a text file that I need to send to a network printer directly. i.e. no driver...
>
>How do I tell fox to print it.
>
>Mike
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform