RE: Printing Saved Files



Hi Doug:

Try this. This line copies the file to the printer connected to LPT1: in
Windows. You may also specify LPT1 or LPT2 instead of PRN.

COPY FILE final.txt TO PRN

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003

>I'm trying to print a report that I saved with the command PRINT REPORT
>report1 TO FILE filename.

>Then I copy the file to a printer port to print the file: COPY FILE
filename
>TO \\server1\printer1

>When I use this command on my system it works fine but when I use the same
>command on a client's system it just copies the file to the computer and
>calls it printer1.

>The printer seems to be set up properly, the port name is
\\server2005\x128.
>But when I copy the file file to this port it just creates a file called
>"x128" on my hard drive.

>Any ideas what's wrong?

>Thanks for your help.


>Doug




.



Relevant Pages

  • Re: Printing Saved Files
    ... I even tried the command ... You may also specify LPT1 or LPT2 instead of PRN. ... >>>I'm trying to print a report that I saved with the command PRINT REPORT ... >>>The printer seems to be set up properly, the port name is ...
    (microsoft.public.fox.vfp.reports.printing)
  • Re: Redirection?
    ... Bill ... redirect the output to a file instead of having it go to the printer? ... You print *.prn ... files by using the copy command from a command prompt: ...
    (microsoft.public.windowsxp.print_fax)
  • Re: CMD command
    ... Indera ... Don't just live life. ... When you specify prn, the directory list is sent to the printer attached ... If your printer is attached to a different port, ...
    (microsoft.public.windowsxp.general)
  • Re: Dusting off Visual/Digital Fortran - how the heck to migrate printing?
    ... >might be able to write to COMn if you attach a serial printer to seral ... Only ever used PRN or LPTn:. ... >the port names in the Printer control panel. ... Haven't seen a serial printer on a PC for years, ...
    (comp.lang.fortran)
  • Re: Dusting off Visual/Digital Fortran - how the heck to migrate printing?
    ... Ken Plotkin wrote: ... >>might be able to write to COMn if you attach a serial printer to seral ... Only ever used PRN or LPTn:. ... >>the port names in the Printer control panel. ...
    (comp.lang.fortran)