Export to Excel queries for multiple worksheets in SSRS 2008 -
we have 2 reports, 1 consumer details , consumer transaction details. consumer transaction details report based on consumerid consumer details report.
consumer details report displays consumer details. consumer transaction details contain consumer’s transaction details.
we have created 2 separate reports in ssrs. have set “go report” action consumerid field of consumer details report point consumer transaction details report consumer id only. this, have set parameters. in preview of consumer details report when click on consumerid field, displays transactions details clicked consumer id.
now, want 2 things:
- when export excel, want consumer details should in sheet1, , consumer transactions details should displayed in sheet2, sheet3,sheet4…etc. (number of sheets should depends on number of consumer id available in consumer details report).
- also, when click on consumerid cell of consumerdetails, should redirected particular transaction details sheet (for consumerid).
is there way achieve this?
your first requirement can achieved through adding subreport referring consumer transaction details
, make visible when exported excel. if using ssrs 2012, can use following expression in subreport visibility:-
=iif(globals!renderformat.name = "excelopenxml", false,true)
reason make subreport when export report, current viewable content exported (unless hidden expression mentioned), not linked reports. when have subreport consumer transaction details
rendered along main report consumer details
, can export them in 1 excel file. make sure apply appropriate page breaks view data in different sheets.
as second requirement, since when export data excel, linked other report given link, hyperlink direct reporturl. far have known ssrs, cant done. please comment if have questions.
Comments
Post a Comment