简体   繁体   English

从主报告到 Excel 的 SSRS 钻取报告

[英]SSRS DrillThrough Report to Excel From Main Report

I am creating a drillthrough report in ssrs.我正在 ssrs 中创建钻取报告。 I have two reports.我有两份报告。 First Report is pharmacyMain.第一份报告是pharmacyMain。 Here is the design picture.这是设计图片。 PharmacyMain and second Report is PharmacyDetail. PharmacyMain和第二个报告是 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.我将“来自 PharmacyMain 的状态”列的操作设置为“转到报告”并添加了两个参数。 Here is the picture.这是图片。 Action of pharmacyMain And parameters药房作用主要及参数

This works fine in ssrs.这在 ssrs 中运行良好。 But when i export this to excel and click on any value from column status.但是当我将它导出到 excel 并单击列状态中的任何值时。 it shows this message.它显示此消息。

Here is the picture Message in excel .这是excel 中的图片消息 I am using ssrs 2012.我正在使用 ssrs 2012。

You cannot use "Go to report" as far as I know if you are planning to export to excel.据我所知,如果您打算导出到 excel,则不能使用“前往报告”。 The go to report action generates a URL internally that expects to be accessed from the report server.报告操作的 go 会在内部生成一个 URL,该 ZE6B391A8D2C4D4585703DZ 期望从报告服务器访问。

Get round this in the past I have done the following.绕过这个在过去我做了以下。

Changed the Action to "Go to URL"将操作更改为“转到 URL”

Set the URL to an expression such as the following example which also includes setting parameter values.将 URL 设置为表达式,例如以下示例,其中还包括设置参数值。

= 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. Globals.ReportServerUrl 只为您提供基本报表服务器 URL 部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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