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

Page N of M = Page 1 of -1?? (subrpt)

Status
Not open for further replies.

bobhilt

Programmer
Aug 2, 2000
20
US
I've got report header a, which contains a sub-report with headers a and b. The reason for this layout is that in the subreport, I do a sql lookup to find which header to suppress (a db lookup based on the main report's parameter). This part works great, and doesn't interfere with the main report's SQL (my whole reason for doing this convoluted way.)

Now, however, I can't seem to tie into the pagecount of the main report for my Page N of M page numbering field. Instead, I just get "Page 1 of -1"

Any ideas on tying in the main report's page count into a sub-report's "other" field types???

Otherwise,is there a better way to do this so I won't have to?

Thanks,
-Bob
 
I don't think you can refer to main report pagination within the subreport.

What version of CR are you using?
What exactly are you trying to do with the page numbers. Ken Hamady
On-site custom Crystal Reports Training and Consulting.
Quick Reference Guide to using Crystal in VB.
 
Version is 7.02.100.

I'm just trying to display them normally. What I was able to do as a workaround, though I find this was just luck, is to reduce the width of the sub-report in the header, and move all of the report header's stuff that I needed to the right of the sub-report.

So I suppress the parts that I need within the sub-report, and am still able to see report parametes, pagination, etc.

I would like to not have to do this, so if there are any tricks to get parameter visibility, that would be great.

Thanks!
-Bob
 
I am not sure what "normally" means to you specifically, but since it sounds like you solved the first problem, I guess it doesn't matter.

Now explain "parameter visibility". Ken Hamady
On-site custom Crystal Reports Training and Consulting.
Quick Reference Guide to using Crystal in VB.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top