2

I am using Crystal Reports with C# programming language.
I want to open another report by clicking on link eg. I show Invoice's Summary like its number (named InvNo), date, items and TotalAmount.
Now I would like to open another report when user clicks on InvNo column. If user clicks on Invno 0001 then another report should be opened showing Item-wise details...

Is there any solution for this?

2 Answers 2

2

There are two 'linking' options:

  1. use an 'on-demand' subreport - this is a report embedded in another report. it is NOT generated until its link is clicked. 'standard' subreports are generated at the same time as the 'main' report. in either case, a subreport can NOT contain another subreport.
  2. create a hyperlink to another report by setting a field's Hyperlink property (choose the 'A Website on the Internet' option). if you create a conditional formula (the 'X+2' button), you'll have more control over the URL that is generated. you'll probably want to create a controller page (like 'view_report.aspx') that parses the querystring for the report's id (id=234), opens the report, authenticates, add parameters (country=USA&region=MN&start_date=20110501), generates the report, then returns it.

Use option 1 for the summary, then use option 2 for the item's details.

If you are using BusinessObjects Enterprise, use UrlReporting for option 2.

1
  • I work in desktop base program. so i want to hyperlink it but the option 2 is for website. beside how can i use conditional formula? Is there any tutorial about it?
    – virboy
    May 4, 2011 at 3:49
0

I believe subreports functionality is an answer to your question.

You would need to enter a formula that conditionally shows/hide them (they should be hidden by default). Unfortunately I cannot tell you how to do that from the back of my head, since I haven't worked on CR for pretty long time now... Please find few links here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.