Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ken Senter
  Where is Ken Senter?
 Raleigh/Durham
 North Carolina - United States
 Ken Senter
 To: Ken Murphy
  Where is Ken Murphy?
 Springhill
 Canada
 Ken Murphy
 Tags
Subject: RE: Printing to file
Thread ID: 78628 Message ID: 78768 # Views: 2 # Ratings: 0
Version: Visual FoxPro 5 Category: Reports and Printers
Date: Friday, October 07, 2005 7:14:12 PM         
   


> > I have done this also but the file is garbled when I open it.
> > The code I use is as follows.
> > Any idea what colud be wrong :
> >
> > REPORT FORM "C:\WINDOWS.000\Desktop\APPLICANT.FRX" TO FILE PUTFILE("Save As","","TXT") NOCONSOLE
> >
> > Thanks Again

>
> What are you opening the file with? Your resulting file should be a .txt file and it should open with notepad or wordpad. Does your report contain graphics? If so, it probably won't work.


I was looking into something like this recently myself, maybe I can help...

If you don't mind paying, there are several products out there that will allow you to save to pdf's or tifs. you can google it. one example http://www.docu-track.com/downloads/ They even have an API you can purchase to automate the processes (instead of the user selecting where they want to save the file each time they print)

Another option, (free but a little more complicated) is to create a printer with any post script driver (if it ends in PS it'll probably work) and when selecting the port for the printer (instead of lpt1, etc) create a new port, make it a local port and for the name enter a path where you want it to put the file, such as "C:\temp\<a target='_blank' href='http://postscriptfile.ps/' rel='nofollow'>postscriptfile.ps". When you print to that printer it'll always overwrite that file. Then you can use another program to process the postscript file, some options are adobe acrobat distiller, ghostscript (open source but a little complicated), there's even a free tool out there that uses ghost script but makes it a little easier to use you can find that at http://www.lexacorp.com.pg/

Hope that helps...

ENTIRE THREAD

Printing to file Posted by Deon Steyn @ 10/6/2005 11:45:39 AM
RE: Printing to file Posted by Ken Murphy @ 10/6/2005 1:39:12 PM
RE: Printing to file Posted by Deon Steyn @ 10/6/2005 1:49:14 PM
RE: Printing to file Posted by Ken Murphy @ 10/6/2005 2:16:35 PM
RE: Printing to file Posted by Deon Steyn @ 10/6/2005 3:59:38 PM
RE: Printing to file Posted by Ken Murphy @ 10/7/2005 4:25:39 PM
RE: Printing to file Posted by Ken Senter @ 10/7/2005 7:14:12 PM