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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I Specify Number Of Copies To Print ? 1

Status
Not open for further replies.

drosenkranz

Programmer
Sep 13, 2000
360
US
Hello,

I have a commend button that prints a report on demand. The user will need three copies of this report for their purposes.

I know I can specify "TO PRINTER PROMPT" to allow the user to enter the number of copies they want but...

Is there any way I can specify that I want three copies without relying on the user to do this?

I know I can run the report three times in a row on the button's click event from code- I was just wondering if I could do it a different way on one run of the report.

Thanks.
The 2nd mouse gets the cheese.
 
Method 1:
===================================
Make a COMMAND BUTTON
'SetOutput' and put the code
SetOutPut.ClickEvent
SYS(1037)
.
Keep this button parallel to your list/print button and make this visible whenever that list button is enabled/visible (Put in the InitEvent of the SetOutPut Button.. This.Visible = This.Parent.PrintBtn.Visible etc etc.. ways...

When multiple copies are required, users can choose thru the printer dialog the number of copies required...

Method 2:
===================================
You can use the PrintJOb... EndPrintJob looping
and set the
_Pcopies = 3

Method 3:
===================================
In you programme.. you have to loop the report to the number of times required...
For I = 1 to copyReq
DO REPORT TO PRINT etc..
ENDFOR


Hope this helps you
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top