简体   繁体   English

SSRS:将钻取报表从主报表导出到Excel

[英]SSRS: Export Drillthrough Report to Excel From Main Report

I have a matrix on my main SSRS report (Lets call it Main) which has the row groups: Manager Employee 我的主要SSRS报告(我们称其为Main)上有一个矩阵,其中具有以下行组:Manager Employee

Then my one Column Group has Count of Loans. 然后,我的一个“列组”具有“贷款计数”。

在此处输入图片说明

What I want to do is if a User clicks on "Click Me" underneath Excel Report, they could export an Excel file based on SSRS columns from a different SSRS report (let's call it Drill01). 我想做的是,如果用户单击Excel报表下的“单击我”,他们可以从其他SSRS报表(我们称为Drill01)中基于SSRS列导出Excel文件。 Basically just instead of going to the drillthrough report (Drill01), it should export that drillthrough report in an Excel format automatically. 基本上,除了转至钻取报告(Drill01)外,它还应自动以Excel格式导出该钻取报告。

Does anyone know how to do this or where I should search? 有谁知道该怎么做或应该在哪里搜索?

Easy.. have a drill down report that is formatted the way you want to see it in excel and render the report directly to excel via the drill down.. rather than just calling another report straight.. use the reportmanager link.. Use the Action - go to URL rather than go to report.. then you can specify the report link with the required parameters and the render style.. in this case Excel. 容易..拥有一个下钻报表,该报表的格式设置为您希望在excel中看到的格式,并通过下钻直接将报表呈现给excel。而不是直接调用另一个报表。.使用reportmanager链接。措施-转到URL而不是转到报告。然后,您可以使用所需的参数和呈现样式指定报告链接。 something like this: assuming you have two parameter called test and test1 (for example) 像这样:假设您有两个名为test和test1的参数(例如)

="http://yourreportserver/pages/folder.aspx/all the way to your report folder /reportname"&"&test=" & Parameters!test.value "&test2=" & Parameters!test2.value & "&rs:Command=Render&rs:Format=EXCEL"

Assuming you have the link correct.. it should just pop up asking you to save / open the sub report in Excel.. 假设您的链接正确无误..它应该弹出来,要求您在Excel中保存/打开子报表。

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

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