SSRS report ignores grouping when downloading - reporting-services

I have created an SSRS report that allows expanding (+ sign) when rendered to a report accessible through a URL. Initially each group is collapsed when viewing the report.
However, when I download it as an MHTML format, it "loses" all the data that initially is hidden, only downloading the first line of data from each grouping.
Any ideas how to fix this? I'm comfortable working with expressions to achieve what is needed, I just need to know what to write in it. I'm guessing it needs to include some kind of "render" command, but not sure what to write.
Thank you.

Related

Access Subreport Shows In Print Preview But Doesn't Print/Export

I can't figure out what is going on with my report in Access 2010. When I run it, all the queries and recordsources are generated and the report shows up, perfectly full of data and formatted in print preview. If I try and print a hard copy or export to PDF, the subreports don't print. I have done compact and repair, closed and opened, and check everything I know, but it's not working. The only thing that I can think of is that the subreports are based on temp tables I generate and set within VBA after I pull all the parameters I need. But I don't see why this would cause it to preview but not print? Any help would be greatly appreciated!!
Here's the solution I found... when I moved the table creation code to the button that prompted the report rather than having it use the openargs in the open event of the subreport, it worked. Don't know why exactly it liked it one place better than the other, but I'm glad that it works now!
After many hours in research and experimentation the only solution was a third party print function: http://www.lebans.com/reporttopdf.htm. Leben’s function always produces a printable PDF with visible subreports.
No modification of the report’s properties was of any value, though this is suggested by various posts; it failed to work for me. Similarly, compact and repair failed to help, as did the creation of a wholly new MDB file and importing all the forms/tables/queries. I ran the MDB in Access 2003 and in Access 2010 on another machine and had the same failure.
This points of course to the issue being embedded within Access. Research shows this has been an issue plaguing Access for many years; in its inimitable lack of care for users getting work done Microsoft has failed to even comment on this, much less fix it.
I had a similar issue and thought that I should post my fix in case someone else runs into the same problem.
I had a report with two subreports on it. From a form, I would select from several combo boxes and then hit the button to run the report. When the report opened (in preview and in report-view) it looked fine, and the subreports worked fine. However, when I tried to print or save, the subreports would not show up.
My solution was in my queries and in the form. The report's source queries were pulling criteria from the combo boxes on the form. Once the report was run, the combo boxes would clear, thus clearing the criteria for the queries. After the report is run, the report looks at the queries again when you try to print/save.
If you have a similar setup, I would suggest checking your source queries again after the report is run to see if you are still getting results. You should see the same data in your queries and in your report. If not, there's where to start looking. Hope this helps anyone else struggling with the same issue.

How to show/hide specific pages of an Access report?

I'm creating a per-employee report that will be output to PDF and some pages of the report will only be applicable to specific employees. Ideally I would like to not show those pages when the report is run or when it is output to PDF.
Each page of the report would be pulling from different data, so I was looking into sub-reports as a potential option.
The other thing that might complicate this is that I need to be able to perform a batch output of the report for multiple employees to individual PDF files.
What is the best way to go about achieving this? Sub reports that I show or hide based on the available data? I've searched pretty extensively and haven't found any suggestions on how best to accomplish this.
Thanks in advance!
Reportfields have a CanShrink Option. If its empty and nothing else is on that line horizontally it shrinks to nothing. If you set all fields of a page to CanShrink it disappears in Reports where all the fields of that page are empty.

Keep collapse expand while exporting to MHTML in SSRS 2008

Is it possible to create a report with 'collapse-expand' feature and keep it "live" when exporting the report to MHTML ?
I try it without any success, I just wondering if there is any 'work around' way of doing it.
I didn't find any references on this issue over the web.
The MHTML is an interpretation of the RDL language upon exporting a report definition. I am not sure if many of the advanced options of SSRS you would be available to do with exporting (drill downs, collapsing, etc). You can collapse with Excel though, I do know that.
Could you not develop an HTML page that calls to the server or else give the user direct access? Different formats will do different things but the direct report will always have more power than an 'export' format of it. Before going too far down the road of doing this I would ask: "Why do you need to do this?" Is a certain user having to have it in a detached format from SSRS?
There are two things I can tell you you can do depending on your level of knowledge of code and what you want to accomplish:
You may embed the report in existing HTML as a property. It is similar to:
< Form id="frmRender" action="http://(servername)/(webservicelocaleofreport) method="post" target="self">
You can code in a language of either C# or VB.NET a report viewer that can call to the webservice to VIEW the report live via SOAP web calls.

Dynamically loading SubReport data in SSRS

This is in SSRS 2008.
I've created a report with a tablix, embedded in the tablix there is a subreport. This subreport contains a lot of information (and I mean a lot – it takes more than 45 sec to load it).
I don’t want to show it, or to be more precise – to process/load the data when the report initially runs. Note that I dont want to just not display it - because then all the data is still processed at initial load time.
Instead, I only want the subreport to be processed (and the data pulled down), individually, when I display it (e.g. clicking a + sign to toggle it, or any other option such as clicking an image/ link, while staying in the same report). I also don’t want to open the subreport in a different tab or something like that....
Does anyone know a solution? Maybe there is an onLoad method, dynamic subreport or something like that?
I tried looking into the DataElementOutput attribute, but that's readOnly... anything else?
Before you jump through a lot of hoops to implement a workaround, have you analyzed the execution plan for the query which is delivers the data for the subreport? If you haven't, it's worth it to see if performance can be improved by adding a covering index which will help the query optimizer to deliver the data quickly.
Hope this helps,
Bill
So, as it turns out, the problem was in fact because I had the subreport repeated for each row in the parent report. Thus, the subreport was called numerous times...
And according to MS, there is no way to dynamically process individual subreports. Had to solve this issue by splitting out the subreport (at least the data-heavy parts) to a seperate page. :(

Is there a way to change the sql reporting chart type and sub type at runtime?

Is there a way to change SQL Reporting "chart type" and "sub type" at runtime?
I'm working with a .rdlc report and can't seem to figure out the way to change this at runtime. I don't have the "Expression" ability in either of these fields.
Looks like it may not be possible until 2008: Microsoft Link
Your .rdlc file is where everything is defined about your report, including report type. So in cases where I want to change something about the report, I just modify the rdlc file using my favorite xml editing method (XmlDocument, XPath, etc.). You would just modify your RDLC file on the fly to change the report type, then display, or save, whatever.
I did this to allow users to set their own report colors, for example, since those are defined in the rdlc as well.
I am trying to do this exact same thing. I have a set of measures that are shown and then a chart underneath that will show only one measure at a time, depending on user input (which of the measures they wish to see in chart form). However, certain measures are better as columns instead of lines, so I'd like to change the chart type at render-time.
My initial idea is to overlap two charts and set their visibility opposite of each other and according to the user dropdown input. Seems like there could be an easier way (if that idea would even work in the first place?)
Thanks.
I'm using 2008 and it is not solved there as far as I can see. There are so many options for chart type and then even more on subtype, I wouldn't want to have to render them all and then show or hide the right one.
I'm wondering if there is a way to parse the XML of the .rdlc and feed it back to the report viewer without having every user getting there own new modified version of the actual .rdlc file.
On a side note, MS just released a new charting package (from the acquisition of Dundas). Maybe I'll dump the report idea and go with the mschart server control.
One possible solution could be to generate both the charts you wanted and then hide one of them based on your requirement.
Think multiple Values and Visibility. If all other variables are constant (i.e., category, series, etc), simply add a Value for each of the desired chart type, and use a parameter to control value visibility. Elegant and simple.