Paul Newton wrote:
> Hi all
>
> Happy New Year
>
> I'm looking for a very quick, dirty (and silent) way to send a text file 
> (from VFP) to the default windows printer - any suggestions please ?
>
>   
Hi Paul,

A way you could do it not quite as quick as Dave's method would be to 
create a simple report with a detail line that goes to the page width 
(field called say cReptext) and set it to stretch with overflow.  You 
can then in a program have:

Private cReptext
cReptext = filetostr("c:\myfolder\myfile.err")

* set printer to default windows printer

SET PRINTER TO NAME SET('printer',2)

REPORT FORMAT MYREP TO PRINTER NOCONSOLE

This assumes the file is not too big, but a fairly simple solution.

HTH

Peter




_______________________________________________
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.

Reply via email to