Eurico, > I am trying to use this API with no success, sending a file > to the printer, Epson TM=P2 with generic drive text only, in > a XP-SP 2 system. > It works file to file, but to the printer it does nothing. > > Can someone give me any leads ?
This worked a while back, but haven't used it in a while. It sends a file containing text + PCL to the printer. The ??? Sends more PCL after the text file. set printer on set device to print set console off DECLARE INTEGER CopyFile IN win32api string @, string @, integer local source,target,flag source = 'c:\vls\forms\3553z.txt'+chr(0) target = 'lpt1:'+chr(0) flag = 0 =copyfile(@source, @target, flag) ??? chr(27)+'&f15y2X'+chr(27)+'&a0h0V'+chr(27)+'(3@' Bill > TIA, E. > _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.