Thanks!
Mike
You can drag the Globals!PageNumber and Globals!Totalpages from the
expression window of the IDE. for (Page X of Y ) you can use formula ="(Page
"&Globals!PageNumber & "of"Globals!TotalPages &" )"
Did I answer your question..
Cheers,
siaj..
For example on page 67 of the report where District Z's two page group
begins, I would like to display Page 1 of 2 on page 67 and Page 2 of 2 on
page 68.
Parametizing the report and printing each district individually is not an
option as there are more than 800 districts in the state.
Thanks again!
Mike
Shared gPageNo as Integer = 0
Shared gCurDistrict as String = "00000"
Shared gFirstCall as Integer = 0
Function IncPage(ByVal CurDistrict as String) as Integer
If gFirstCall = 0 Then
gFirstCall = 1
gPageNo = 1
Else
If CurDistrict = gCurDistrict Then
gPageNo = gPageNo + 1
Else
gCurDistrict = CurDistrict
gPageNo = 1
End if
End If
Return gPageNo
End Function
From the Page Footer, I have a textbox where I call the IncPage function
referencing the value of the txtbox in the list like this:
="Page: " & Code.IncPage(First(ReportItems!DistrictCode_1.Value))
I'm not sure why yet, but before I placed the gFirstCall If statement in
there the first page was always starting at Page 2. Every other page showed
the correct page though. Wierd.
Thanks again!
Mike
Thanks
Harry
DistrictCode_1 is the hidden textbox in the body of the report. Its value is:
=First(Fields!DistrictCode.Value)
In the value of the footer page number textbox below, DistrictCode_1 refers
to the hidden textbox in the body:
="Page: " & Code.IncPage(First(ReportItems!DistrictCode_1.Value))
Mike
DistrictCode_1 is the hidden textbox in the body of the report. Its value is:
=First(Fields!DistrictCode.Value)
In the value of the footer page number textbox below, DistrictCode_1 refers
to the hidden textbox in the body:
="Page: " & Code.IncPage(First(ReportItems!DistrictCode_1.Value))
I never did get that first page in the first group to start at 1. Let me
know if you figure that one out.
Mike
Have you heard if Mcirosoft plans to make improvements on page numbering
control with report grouping? I posted a item addressing this question.
I don't work for Microsoft, so I really have no idea what they are planning.
I would like to see a lot of changes in Reporting Services as I pushed
pretty hard to get it to be used in my organization.
"Dave Sundell" wrote:
> Got it. Now have to work on getting the page numbers to come out right. It
> comes out as:
> Group 1 (has 4 pages)
> Page 1
> Page 1
> Page 2
> Page 3
> Group 2 (also has 4 pages)
> Page 1
> Page 1
> Page 2
> Page 3
>
> I also would have liked the total pages on each page, e.g. Page 1 of 4, but
> I realize that won't be possible, since Reporting Services operates in a
> single pass report generation methodology. That is why am asking if in the
> next release there will be greater control over this areas.
>
> "Michael McGroarty" wrote:
>
> > Just put a text box on the page and make its value:
> > =First(Fields!YourFieldHere.Value)
> >
> > I have no idea what Microsoft's plans are.
I also would have liked the total pages on each page, e.g. Page 1 of 4, but
I realize that won't be possible, since Reporting Services operates in a
single pass report generation methodology. That is why am asking if in the
next release there will be greater control over this areas.
"Michael McGroarty" wrote:
> Just put a text box on the page and make its value:
> =First(Fields!YourFieldHere.Value)
>
> I have no idea what Microsoft's plans are.
>
> "Dave Sundell" wrote:
>
Shared gPageNo as Integer = 0
Shared gCurClock as String = "00000"
Shared gFirstCall as Integer = 0
Function InitPage(ByVal CurClock as String) as Integer
If gFirstCall = 0 Then
gFirstCall = gFirstCall +1
gPageNo = 0
gCurClock = CurClock
Else
gFirstCall = gFirstCall +1
If CurClock = gCurClock Then
gPageNo = gPageNo
Else
If CurClock.length > 0 then
gCurClock = CurClock
gPageNo = 0
Else
gCurClock = gCurClock
End if
End if
End If
Return gPageNo
End Function
Function IncPage(ByVal CurClock as String) as Integer
If gPageNo = 0 then
gPageNo = gPageNo + 1
else
If gFirstCall = 1 Then
gPageNo = 1
gCurClock = CurClock
Else
gPageNo = gPageNo + 1
End If
End If
Return gPageNo
End Function
I have no idea what Microsoft's plans are.
From http://www.developmentnow.com/g/115_2005_3_0_0_457102/Page-Numbers-by-Group.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/