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
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