Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make VFP print to COM2
Message
From
10/01/2005 06:52:11
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
 
 
To
06/01/2005 15:18:36
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00974821
Message ID:
00975606
Views:
33
Try it. I got it from another developer on this forum and it works good.
SET PRINTER TO myprinter.txt
SET PRINTER on
SET CONSOLE OFF
?"nfdgkfdjkgfk"
?"ncvmxvkcxvkc"
?"kvdjlgjkfsl"
SET PRINTER TO 
SET CONSOLE ON 
SET PRINTER off  

xfile="myprinter.txt"
xport="com2"  &&---- you can use names like "\\secretary\hp_laser"
  STRTOFILE(CPCONVERT(CPCURRENT(1) ,CPCURRENT(2),FILETOSTR(m.xfile)),m.xfile)

DECLARE INTEGER CopyFile IN kernel32;
	STRING lpSrcFile, STRING lpDstFile, INTEGER bFail
CopyFile(m.xfile,m.xport, 0)
Previous
Reply
Map
View

Click here to load this message in the networking platform