Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Cheryl B
  Where is Cheryl B?
 Xenia
 Ohio - United States
 Cheryl B
 Tags
Subject: Printer Selected from To PRINTER PROMPT
Thread ID: 104575 Message ID: 104575 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Reports and Printers
Date: Thursday, August 17, 2006 7:39:46 PM         
   


Greetings, All!

I have a group of 3 reports that are printed in a loop so that the reports come out "collated" on the printer as such:

Group 1
Title
Body
Appendix
Group 2
Title
Body
Appendix

I am using the REPORT FORM (report) TO PRINTER PROMPT and would like to capture whatever printer the user selects the first time. Once I have a captured printer, I would not issue the PROMPT on the REPORT command; instead, I would SET PRINTER NAME TO (printername).

Problem is, I don't know how to capture that printer name. Any suggestions? GETPRINTER() doesn't allow for inputting a range of pages, neither does SYS(1037).

I've tried using the REPORTFORMPROMPT screen that I got (I think) from UniversalThread. Problem with that is the interface uses RANGE , to print a range of pages, and that doesn't work (at least in version 6) when a WHILE or FOR portion is also chosen.

Can this capture be done either through VFP or a Windows Call?

Thanks!

P.S. Congrats on 5 years, Eric! Sorry I missed the celebration last May!

Cheryl B

ENTIRE THREAD

Printer Selected from To PRINTER PROMPT Posted by Cheryl B @ 8/17/2006 7:39:46 PM
RE: Printer Selected from To PRINTER PROMPT Posted by Barbara Peisch @ 8/17/2006 9:18:35 PM
RE: Printer Selected from To PRINTER PROMPT Posted by Eric den Doop @ 8/17/2006 10:15:48 PM