简体   繁体   中英

SSRS DrillThrough Report to Excel From Main Report

I am creating a drillthrough report in ssrs. I have two reports. First Report is pharmacyMain. Here is the design picture. PharmacyMain and second Report is PharmacyDetail. Here is the picture. PharmacyDetail

What i have done. i set the Action of column "Status from PharmacyMain" to "Go to report" and added two parameters. Here is the picture. Action of pharmacyMain And parameters

This works fine in ssrs. But when i export this to excel and click on any value from column status. it shows this message.

Here is the picture Message in excel . I am using ssrs 2012.

You cannot use "Go to report" as far as I know if you are planning to export to excel. The go to report action generates a URL internally that expects to be accessed from the report server.

Get round this in the past I have done the following.

Changed the Action to "Go to URL"

Set the URL to an expression such as the following example which also includes setting parameter values.

= Globals!ReportServerUrl
+ "?/myFolder/DetailReport" 
+ "&Period=" + cStr(Fields!Period.Value)
+ "&Id=" + cStr(Fields!Id.Value)
+ "&rc:Parameters=Collapsed"

The Globals.ReportServerUrl just gives you the base report server URL part.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM