Crystalguru
Technical User
Crystal 8.5
SQL Server 2000
To reset each page number for each patient in the report. Report is duplex printing, printing one page on front, next one on back - remainder(pagenumber/2)=0
Report has main report with 5 groups, in 4th group is subreport.
G1 - Unit
G2- Unique ID
G3- Patient Name
G4 - Patient UI
G5 - CodeNum
Section Expert - New page before subreport prints. The first page of the report is informational. On the main report the information page resides in GH4a,b,d,e and details.
For example:
PAGE 1
Bill Smith Acct:987 01/02/1970
Allergies: Bees
Provider: Dr. Hyde
New page after PAGE 1
PAGE 2 (subreport)
Bill Smith
Medications: (CODE)
Epi Pen
1 dose when stung
New page after each CODE section
Page 3 Page 4 Page 5
Bill Smith Bill SMith Bill Smith
Nutrition: Physical: Laboratory:
Honey Toast Exercise CBC
for snack
The resulting report would be 3 pages. The first page and second page on 1 sheet of paper and the 5th page with Lab on the front and a blank page on the back. The page count should be 1 of 3. What I end up with is 1 of 2, with the page count for the next patient starting on the back of page 5.
I have created a variable that sets the page count and resets it:
But can't get it to work. It either stays at zero when in the page header or doesn't count correctly when in the Group sections.
Any ideas?
SQL Server 2000
To reset each page number for each patient in the report. Report is duplex printing, printing one page on front, next one on back - remainder(pagenumber/2)=0
Report has main report with 5 groups, in 4th group is subreport.
G1 - Unit
G2- Unique ID
G3- Patient Name
G4 - Patient UI
G5 - CodeNum
Section Expert - New page before subreport prints. The first page of the report is informational. On the main report the information page resides in GH4a,b,d,e and details.
For example:
PAGE 1
Bill Smith Acct:987 01/02/1970
Allergies: Bees
Provider: Dr. Hyde
New page after PAGE 1
PAGE 2 (subreport)
Bill Smith
Medications: (CODE)
Epi Pen
1 dose when stung
New page after each CODE section
Page 3 Page 4 Page 5
Bill Smith Bill SMith Bill Smith
Nutrition: Physical: Laboratory:
Honey Toast Exercise CBC
for snack
The resulting report would be 3 pages. The first page and second page on 1 sheet of paper and the 5th page with Lab on the front and a blank page on the back. The page count should be 1 of 3. What I end up with is 1 of 2, with the page count for the next patient starting on the back of page 5.
I have created a variable that sets the page count and resets it:
Code:
@patientpagenum
whileprintingrecords;
numbervar PTpagenum:= PTpagenum +1;
@Resetpatpagenum
whileprintingrecords;
numbervar PTpagenum:= 0
But can't get it to work. It either stays at zero when in the page header or doesn't count correctly when in the Group sections.
Any ideas?