Printing two copies of a report

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
cal
Posts: 70
Joined: Tue Oct 10, 2017 12:44 pm

Printing two copies of a report

Post by cal » Tue Feb 18, 2003 8:54 am

I think I may have gone momentarily ("moment" refers to a somewhat indeterminate period of time) dense.____Version 9.0 build 9.0.009____I want to print a report, calling RRWRUN from a Clipper app and print two copies of the report. BUT, I want it to be printed page 1, 2, 3,... page N and then pages 1-N, again for the second copy, as opposed to page 1, page 1, page 2, page 2, page 3, page 3...____My client says the report used to come out this way. I^ved tried the "collate" check box on the print dialog box the report designer, but the report comes out 1,1,2,2,3,3,... no mater whether the box is checked or unchecked.____Would someone help by leading me out of the darkness, please?____Thanks.____cal

Robert_Seidman
Posts: 62
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Printing two copies of a report

Post by Robert_Seidman » Tue Feb 18, 2003 10:18 am

Create a variable called copy - copy().____Place this in the header of your report. Now when you tell it to print multiple copies it will collate it for you. In addition, this allows you to put different messages on different copies of the report.____For example, the first copy could say "Office Copy" and the next coulc say "Warehouse Copy".____This would be done by creating a variable - IIF(copy()=1,^Office Copy^, ^Warehouse Copy^,^^)

cal
Posts: 70
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: Printing two copies of a report

Post by cal » Wed Feb 19, 2003 7:32 am

Thanks. That^s a good idea for designating the copies...later.____Now, though, my problem is the order in which the pages come out of the printer. I want page 1 thru N to come out for the first copy, then 1 thru N to come out for the second copy. What I^m getting is 1, 1, 2, 2, 3, 3, ..., n, n.____

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

===> RE: Printing two copies of a report

Post by kfleming » Wed Feb 19, 2003 8:14 am

Having the COPY() field on the report will likely correct the collation problem. I think that it why it was suggested.____Kathleen__R&R Support

Randall_Warden_(Guest)
Posts: 22
Joined: Tue Oct 10, 2017 12:44 pm

====> RE: Printing two copies of a report

Post by Randall_Warden_(Guest) » Wed Feb 19, 2003 5:41 pm

Make sure that you sort by the Copy() field.

cal
Posts: 70
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: Printing two copies of a report

Post by cal » Fri Feb 21, 2003 7:33 am

Okay! Now I see how copy() can be used to do this. I did not make the mental leap required to do the sort step. Thanks to the three of you for helping. I did finally realize, too that I could call my PrtRpt() function twice and get the desired result.____I still wonder what the "collate" check box does in the print dialog "File -> Print..., then the "Number of copies" panel. The setting is stored with the report. Even the cute little diagram of the pages changes when the box is checked. BUT... no matter which way it^s set, the result is the same. It^s like "Switch is OFF, I^m in the dark. Switch is ON, I^m still in the dark." Is this the way it should work?____Again, thanks.__Cal

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

===> RE: Printing two copies of a report

Post by kfleming » Fri Feb 21, 2003 8:55 am

R&R sometimes ignores the collate checkbox when a report does not contain the COPY() function. It is indeed a bug.____Kathleen__R&R Support

cal
Posts: 70
Joined: Tue Oct 10, 2017 12:44 pm

====> RE: Printing two copies of a report

Post by cal » Sun Feb 23, 2003 9:45 am

Thank you Kathleen. It won^t be a problem now that I understand. I^m certain the bug will be fixed in a later release.____Cal

KenB
Posts: 19
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Printing two copies of a report

Post by KenB » Tue Mar 11, 2003 7:08 pm

This is also a problem in version 10.0.012

Post Reply