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

On Demand Sub report caption is Invisible !!

Status
Not open for further replies.

pkgupta

Programmer
Aug 28, 2001
15
US
Hi All,

I am having a on demand-subreport placed on main report. Neither the default sub report caption Nor the user defined sub report caption are visible in the Priview.
When I move the mouse around the place where I had placed the report the hand mouse icon appears, and on clicking there the subreport opens, but the text on the main report is not there.

Also if I uncheck the "On demand" option , the report should be displayed in the preview tab in the main report itself, but that is also not happening.

what may be wrong here !
Please help me out.

Bye
-PKG
 
I can't replicate this behavior.
What version of CR are you using?
Are you running the report from the report designer? Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Hi,

You will also lose the caption if the subreport has been supressed using a formula!

Geoff
 
Hi Ken,

I am using ver 8.0.1.0

Fox,
I have not suppressed it by any formula.

-Pradeep
 
I think I have told this at another place, that
If I do not link the subreport parameters to the main report formula fields then the caption is visible. But the moment I link the parameters, it becomes invisible.

Regards
Pradeep
 
I tried this with V8 and my OD Subs show captions with or without links.

Are you running from an app?
Does this happen if you create a new, simple report and insert a new simple subreport? Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Try following :

Create a blank report, and place an ondemand subreport (with parameter @month and @type) on it. Now you will see the subreport rpt file name in the preview pane , when you move your mouse over it , mouse pointer will change to a hand shape and when you click it the Parameter Excepting window will open and after taking paremeter subreport will open in new pane.
This is an example of unlinked subreport.

Now create a parameter field '@month' and a formula field 'type' in the blank main report. And now link these fields of main report to the parameter fields of the subreport.
Now you will find that Subreport caption (rpt file name) will become invisible, but the mosue will pointer will still change when you move it over the place.

I hope now you will be able to replicate the behaviour.
Now think of some solution!

--PKG
 
That is pretty much what I had done.
I did it again, just like you described, this time in 8.5. I can't replicate the problem.

Are you launching from an app?
What version of CR are you using?
Why do you call your parameters @month and @type. The @ is for formulas. I assume that they are ?Month and ?Type.

You tried it again, completely from scratch with simple reports, and it did the same thing? Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
The OD Sub Caption can also be a formula, which might be hitting a null value. Do you have a formula for the caption? Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Hi Ken,

Currently I am running the report from the Crystal reports itself.

Yes I tried it again, completely from scratch with simple reports, and it did the same thing.

The main reports need to have 'month' parameter as @month as we have in Sybase Stored procedures, that is why I am using those names

I am not using any any formula for OD Sub report Caption.

--PKG
 
Did you try it without any stored procedures?
I am sorry, I just can't replicate the problem. And if I could replicate this and confirm that it was a bug, there would be no other way to control this.

You might try using the subreport caption property, and see if this gives you back control. Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top