|
-
Oct 2nd, 2000, 09:13 AM
#1
Thread Starter
Junior Member
I am new to crystal reports. I have created a report in visual basic using the crystal report designer. The report contains a subreport. When running the report the first page of the report is blank. Can someone help?
-
Oct 3rd, 2000, 08:37 AM
#2
Junior Member
have u try to suppres blank page or not?
-
Oct 3rd, 2000, 09:09 AM
#3
Thread Starter
Junior Member
-
Oct 3rd, 2000, 09:33 AM
#4
Fanatic Member
I use Crystal reports daily (joy of joys but I've found that if there is an empty record, the report will display an empty page, even if you have suppress blank section on.
The only thing I found that worked is to use the same criteria in your main report as you have in your sub report and supress on that instead: IE
Database = Users.DBF (or whatever)
In the suppress formula for the group header (or any section)
Crystal:
If IsNull({Users.UserID}) or {Users.UserID} = "" then true else false;
VB:
If IsNull({Users.UserID}) or {Users.UserID} = "" then
Formula = True
Else
Formula = False
End If
The VB is for Crystal 8.
The Group needs to be based on the criteria you want to show or supress.
I wish Seagate would have put in Object style access to subreports and such: If Subreport.OutPut = <> Then True else false ...
Heh that would be fun.
Your subreport should be based on the same database, or at least have it as a group. Be wary of 1-many situations though.
-Excalibur
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|