Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing from VFP application 2

Status
Not open for further replies.

NozLaf

IS-IT--Management
Apr 20, 2000
1
MT
My department (with about 800 employees) has paid thousands of dollars for a payroll/invoicing application.  The supplier/programmer of the application has developed the system in Visual Foxpro.  However when it came to the issue of printed reports he said we shall have to use Winword.  From the Foxpro application, a ASCII text (.txt) file spanning over 5000 pages is produced monthly!  We then have to print this via Winword on a line printer.  The supplier said the reason for this was a Foxpro limitation (bug).  Actually it is not that we cannot print from the Foxpro application itself but from this application we can ONLY print the whole batch of pages.  The supplier said FOXPRO is limited in the sense that if something happens (say a printer stops, etc) one cannot print a selection of pages, such as from a certain page onwards, but has to restart from page one.  Just imagine what this means if page 5000 get crampled up! Is the programmer saying the truth?  We cannot believe this as we used a dBase IV application which catered for the same business since 1990 and which was built in-house by amateur members of our staff but which let us print the pages we desired.   
 
The latest version of VFP has a RANGE... clause that can be used to identify the starting, or starting/ending, page numbers to be printed.<br><br>Even without that, the reasoning the developer gave sounds pretty hokey to me. <p>Robert Bradley<br><a href=mailto: > </a><br><a href= - Visual FoxPro Development</a><br>
 
I learned how to print a page range back in FoxPlus in 1988.<br>In FoxPro 1990, I started printing to text file and then print a range from it using the fopen() and fget() command.&nbsp;&nbsp;Some time in FoxPro 2,&nbsp;&nbsp;I started asking users what they wanted to print in a screen.<br>In VFP the range parameter came along.<br><br>Sounds like the developer does not know what they are doing, insensitive to the users needs, to lazy to work out a problem, and does not keep up with the changes in the language of his profession.<br><br>If I stepped on any toes I'm sorry.<br> <p>David W. Grewe<br><a href=mailto:Dave@internationalbid.net>Dave@internationalbid.net</a><br><a href= > </a><br>
 
If you're trying to print a certain range of pages in a report, include the PROMPT command in the print command and a window will be displayed when you go to print the report that will allow you to select a different printer, select specific page number range and select the number of copies of the report. The command would be something like this: REPORT FORM {reportname} TO PRINT PROMPT NOCONSOLE<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top