×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Printing from VFP application
2

Printing from VFP application

Printing from VFP application

(OP)
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.   

RE: Printing from VFP application

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.

Even without that, the reasoning the developer gave sounds pretty hokey to me.

Robert Bradley

FoxDev - Visual FoxPro Development

RE: Printing from VFP application

I learned how to print a page range back in FoxPlus in 1988.
In FoxPro 1990, I started printing to text file and then print a range from it using the fopen() and fget() command.  Some time in FoxPro 2,  I started asking users what they wanted to print in a screen.
In VFP the range parameter came along.

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.

If I stepped on any toes I'm sorry.

David W. Grewe
Dave@internationalbid.net

RE: Printing from VFP application

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close