SSRS Drillthrough server report error - reporting-services

I have a SSRS report with an action on a text-box.
Go to report property is set to the parent report so this makes the parent report also a drillthrough report for itself.
I deployed the report on the report server and it is rendered ok and also the drillthrough action works ok in the Report Manager.
When I attach this report to a ReportViewer control in an .aspx the parent report is rendered ok but the drillthrough action causes an error (Invalid argument).
I have 2 visible and 3 hidden parameters for this report.
I tried to override the ReportViewerCtrl_Drillthrough event and added the following code:
ReportViewerCtrl.ServerReport.SetParameters(reportParamList);
ReportViewerCtrl.ServerReport.Refresh();
where reportParamList is a list of parameters passed from the parent report to the drillthrough report but I get the same error (I used DrillthroughEventArgs.Report.GetParameters() to get the list of parameters and they're passed by in a correct way).
I didn't find on other forums something like this related to reports deployed on Server Report (only for local report).
Any idea would be very much appreciated!

I have found the issue for this.
It was related to the way .aspx page was built.
My report viewer control was framed by a form tag but it appears it also needed a table tag too.
So this is how my .aspx page looks now:
table
tr
td
form
ReportViewer Control
/form
/td
/tr
/table

Related

An attempt was made to set a report parameter 'ABC_PrintCopyOriginal_TH' that is not defined in this report

I'm getting the error: "An attempt was made to set a report parameter 'ABC_PrintCopyOriginal_TH"' that is not defined in this report. when I try to view my reports in a web browser. I'm executing this reports through a menu with button code. When the page comes up I get the error.
I have added manually ABC_PrintCopyOriginal_TH in parameter level report design. this ABC_PrintCopyOriginal_TH was enum which I used to print filter expression based on menu item button. eg: when click on original menu button it needs to print original on report design if etc copy button wise versa....
Can you please help me how to resolve this?
Are you using an SSRS Reporting server to host your reports? If so, have you deployed the report and tried restarting the Reporting server after the changes?
What editor are you using to edit the .rdl files?
If deploying and restarting the server doesn't help there is probably a typo in your .rdl file somewhere since you manually add stuff. Try using Report Builder and check if that gives you more info about the issue.

SSRS Subreport won't run

I have an SSRS subreport that is passed a variety of parameters from the parent report. Some of these parameters are visible in the subreport's parameter list and some are hidden. There are also two additional data parameters are not passed from the parent. These need to be manually selected to actually run the subreport.
The issue is this: when I pass info into the report by clicking on the hyperlink in the parent report, the report will not run inside BIDS. Instead the parameter portion of the report appears to refresh. If I click the View Report button again, it will do the same thing.
The parent and subreport work fine though on the Report Server.
Also, if I use the subreport by itself in BIDS or the Report Server, the subreport will run just fine.
I'm at a bit of a loss to understand what is happening here. Any insight is greatly appreciated.

SSRS Data hidden on screen but visible when exported to PDF

I am facing a peculiar issue in a report using SSRS. When I run the report in BIDS the report runs fine. When I deploy to my report server - we are using sharepoint integrated mode - a particular section is hidden. When I export to PDF from the report server the section magically appears.
The section does have some visibility criteria set but its not on render formats - instead on fields.
BTW - this is the expression I am using:
=IIF(Fields!Item16Status.Value = "NA", True, False).
Also this is happening only for one particular value of input parameters.
I have included the screenshots from BIDS and server for reference here.
Any suggestions to resolve this would be great.
Thanks.

Embedding SSRS Report Viewer in a webpage

I want to create in my website a navigation for SSRS. I will have left panel with all the reports I have and on the right I will have a div with the report the user selected. can I embedded the SSRS report viewer in an HTML div?
The report viewer you see when going to:
http://<server>/ReportServer/Pages/ReportViewer.aspx?%2f<path>%2f<ReportName>&rs:Command=Render
Also, can I pass username in the URL? I tried to user
http://<server>/ReportServer/Pages/ReportViewer.aspx?%2f<path>%2f<ReportName>&rs:Command=Render&UserId='username'
and I get error:
An attempt was made to set a report parameter 'UserId' that is not defined in this report. (rsUnknownReportParameter)
Thanks
More Info:
I am using DataExtensions and the userid gives me the database I need to connect to. In winforms I can use the Microsoft.Reporting.WinForms.DataSourceCredentials object to specify the DB, but in WebForm I can't use DataSourceCredentials (readonly)
Any ideas?
(rsUnknownReportParameter) means you are trying to set a report parameter that does not exist. I would suggest looking at your report again and making sure its spelled correctly in both SSRS and on your URL.
For your first question the answer is yes, you could create different pages for your reports on your site and use the report viewer control to reference the server reports on those pages. Then on your menu change the div iframe to whatever report you wanted to navigate to. Throw Something like this in your menu button Report
That will change the src of a iframe with the id IframeID. Theres a few different ways to accomplish your question of adding SSRS reports to a web app. This is just my go to method.
Click here for the error msg

how to show some data at the time of report download

I have to make headers in my reports what i want when some one see the report in report viewer it should not show the headers of the report but when i export the report header should be present in to the report.
Is it possible to do this.
If you are using SSRS 2008R2, you can use Globals!RenderFormat.Name method to achieve your required output. But using this method, you can hide all the header controls but there will be blank space appeared for the report header in report preview.
Take a look into
Use of RenderFormat method in R2