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!

Fox 2.6 - printing multiple reports to printer user selected

Status
Not open for further replies.

needscoop

Programmer
Nov 13, 2002
29
US
FoxPro 2.6 - Want user to select a printer (via PROMPT), then have multiple reports generated/printed to that
same printer (which is NOT the user's default printer).

Below is the code snippet I tried using - the problem is that the first report prints to the printer the user selected, but the remainder of the reports (within the loop)
end up printing on the default printer, not the one the user selected. How do I retain the user's print destination selection for the subsequent reports?
(want to avoid having the print dialog popping up every time I print the report)


[FoxPro 2.6 / Win 2000]


CODE SNIPPET:
use mytable.dbf shared

go top

n = 1

report form c:\temp\junk.frx to printer prompt

do while n < 5

report form c:\temp\junk.frx to print
n = (n+1)
loop
enddo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top