I have got one problem with MS Reporting Services. I created a asp.net page with report viewer control. The report viewer control renders the report on the MS Reporting Services. I created an action in textbox within the report. This action is "go to report". This action makes that the another report is called. In my case, I want to create a new window with the called report. But I don't want to use go to url. Because I don't want to show my parameters within url. How can I do this? Thanks.
I'm not able to test this at the moment, but I think setting the HyperlinkTarget property to _blank on the ReportViewer should do the trick.
http://msdn.microsoft.com/en-us/library/microsoft.reporting.webforms.reportviewer.hyperlinktarget.aspx
Related
I have a ReportViewer (for SSRS) in an ASP.NET application.
The user enters in parameter information through the web form and then submits it.
The ReportViewer then returns a small report that shows counts of the information requested.
Next to these counts are links (assigned in BIDS) to link to the corresponding report using the parameters already entered.
It all renders fine until I click one of the links in the ReportViewer. It will then give the brief "Loading" dialog and then the ReportViewer disappears.
Not sure how to handle this and I can't find much information on it. I would ideally like the selected report to open in a new window (no URL bar, etc).
Please help!
This ended up being an issue with how ReportViewer was installed on our development and production servers. So when it seems like nothing else can explain what is going on with the ReportViewer... make sure the DLLs are properly installed on your server.
I am trying to follow the instructions here:
http://msdn.microsoft.com/en-us/library/ms251692(v=vs.110).aspx
However, my project is an MVC project, so I can't follow the steps exactly.
I am trying to use a custom object to provide data to a local ReportViewer report. I am converting a server-side report to local (rdl => rdlc). The report viewer control already works with the server report.
In the Dataset Properties page, in the Data source box, select global.
When I try to add a dataset, I get a dialog box asking for me to choose a data connection. If I cancel out of that, I am at the Dataset Properties page, but the data source drop down is empty. Using the Report Wizard takes me essentially down the same path.
I created a new WPF project to see if I had the same problems, and it worked pretty easily. It immediately gave me data source choices of database, object, service, and sharepoint. I realize the two controls (web and windows) are completely independent.
What am I missing? Is it even possible to use the ReportViewer in an MVC project (that also has aspx pages) and use a custom object to supply data?
For whatever reason, I was able to get this to work as expected by moving the rdlc file out of the web project and into a class library.
When you use the reportviewer control in local mode, you have to obtain the data manually through your code, not using the report designer. After that, you pass it to the ReportViewer as ReportDataSource objects. They have DataTable properties which is the actually data. You obtain datatables from the db, so this is pretty straightforward.
This article explains how this is achieved.
I have an SSRS report that employs RowGroups to group data. One of the fields used in the group is a field that stores a URL as text. I've set a Go To URL action on a textbox which enables it to act as a hyperlink that opens up the URL stored as text in a field (i.e. =Fields!URL.value).
The textbox works fine in BIDS and in Report Manager, but when the report is accessed through our custom .asp Reporting Application, the textbox loses this link functionality. It just becomes text. When the mouse is hovered over the textbox, the cursor does not change. I've created another textbox on the report outside the RowGrouping and configured it the same way, and it works fine in the Report Manager and on the Report Application.
Is there any particular configuration that could be restricting a Go to Action property when in a RowGroup on a Reporting Application? Could this be an issue with the report, or an issue on the Reporting App end?
If you are using the ReportExecutionService check to make sure Javascript is true in the device info parameter?
<DeviceInfo>
<JavaScript>True</JavaScript>
</DeviceInfo>
But you said it worked if it was in another part of the report?
link to <DeviceInfo> Details
Never really found an answer to this problem, but a work around I used was placing a textbox to the right of the grouped textbox, where the link seems to work fine.
I've recently started working with SSRS 2008 and ASP.Net.
I must develop a report with 3 different levels of detail. So, I decided the best solution was to develop 3 different reports and provide some drill-through mechanism in order to allow navigation. For that, I set the 'Action' property of one of the textboxes to 'Go to report' and set the correct url.
The parameters passed to the report need to be validated first. So, for a matter of flexibility and better user experience I let the user enter the parameters using standard ASP.Net controls. When the user clics on my custom button 'Show report' the following code executes:
ReportViewer2.ServerReport.ReportPath = ".. my report path ..";
ReportViewer2.ServerReport.ReportServerUrl = new Uri(".. my report url ..");
ReportParameter p1 = new ReportParameter("dateStart", dateStart.ToString());
ReportParameter p2 = new ReportParameter("dateEnd", dateEnd.ToString());
ReportViewer2.ServerReport.SetParameters(p1);
ReportViewer2.ServerReport.SetParameters(p2);
ReportViewer2.ServerReport.Refresh();
Then the report is shown, but the links for navigating to the other reports don't work.
You may notice that the parameters added are visible, thus letting me press the 'View Report' button wich is embedded inside the report viewer. If I do so, the report is rendered again and then everithing is Ok. It's like the ReportViewer.ServerReport.Refresh() method is missing something.
That's a problem, because the requirements states that the parameteres need to be hidden.
When I execute the report from inside VS or the Report Server the links work ok, but in those cases I always must press the standard 'View Report' button.
Is this a bug of the ReportViewer control or am I missing something here?
Thanks in advance.
Regards,
Gonzalo.
The report viewer contains an update panel. You must call the Update method of the update panel in the pre-render event of the report viewer:
protected void ReportViewer2_PreRender(object sender, EventArgs e)
{
((UpdatePanel)this.ReportViewer2.Controls[1]).Update();
}
I have an URL to a location on the server where it can find teh report.
The report works just fine if i manually refresh it.
I tried using rc:ClearSession=TRUE and i also tried sending a random parameter, but the report is still not being refreshed.
Any ideas?
The main scenario:
User eneters the page(with a grid view)
User clicks on Export
User sees the Report
User deletes an entry from the page - grid view
User clicks on Export again
User sees the exact same report
P.S. : The report query returns the data that should be displayed but the report returns the previous data.
Could be how the report is setup. Go to your report server (http://reportserver/reports). Find the report and click Properties. Then go to Execution. Are any of the report caching or snapshot options turned on?
I found the problem: it was that the name of the report was too long
I don't really understand why the report would work but won't refresh.
I shortened the name and it worked.
Thank you for your answer