Moving from subreport to main report

Hello everybody,

I have an on-demand subreports and when user is the subreport, he needs to click the Back button of the browser to move back to the main report.

Is there a way I can give a button or link on the subreport for the user to click and move to the main report page?

Thanks.

[329 byte] By [usamaalam] at [2008-1-10]
# 1

You can have link in your page

Using javascript window.history.back you can have same functionality like back button of browser

Hope it helps

ManishJoisar at 2007-10-3 > top of Msdn Tech,Visual Studio,Crystal Reports for Visual Studio...
# 2

I think this will not work well since there can be multiple pages on subreport and if user is on page 1 and clicks next page and then clicks on the link to go to the main report, the link will redirect him on the page 1 of the subreport instead of redirecting to the main report page.

Thanks.

usamaalam at 2007-10-3 > top of Msdn Tech,Visual Studio,Crystal Reports for Visual Studio...
# 3

Yes, It can create a problem.

You must be knowing that on crystalreportviewer toolbar there is option to go directly to either main report / sub report(Only after you view it once).

User can select report which he/she wants to see.

Hope it helps

ManishJoisar at 2007-10-3 > top of Msdn Tech,Visual Studio,Crystal Reports for Visual Studio...
# 4

I couldn't find this option. Where it is and how can I enable it?

Thanks.

usamaalam at 2007-10-3 > top of Msdn Tech,Visual Studio,Crystal Reports for Visual Studio...
# 5

In crystal report viewer it is there & you will find combobox which shows main report & whenever you click on any subreport that subreport also added to that combbox

So while in subreport page if you want to goto main report, just select main report from combobox

Hope it helps

ManishJoisar at 2007-10-3 > top of Msdn Tech,Visual Studio,Crystal Reports for Visual Studio...

Visual Studio

Site Classified