SSRS Report Builder landscape report export to PDF
Issues with Excel export from SSRS
Hi!
I'm using the most current version of SSRS and Excel 364 Professional.
I have a rather complicated SSRS report that uses subreports to show detail data. I use the same subreport in the same row in different columns. Here's what the SSRS designer screen looks like, in part.
This is an organization chart. I'm using subreports to show the details if there are one, two, three or more teams within each Track. The visibility of the rows is set depending on the number of teams, so only the correct rows show.
The same subreport is used throughout. I'm passing parameters to get the right details. This all works perfectly when I preview the report. However, there are some serious issues when I export this to Excel. Trust me, I've done everything
I know to do to remedy these issues, but nothing has helped. Here's what I see in the preview . . .
Although I've obscured the names, the boxes and lines look perfect in the preview. But here's what I get when I export this to Excel.
As you can see. sometimes, but not always, a border appears below each name. it's weird, because it doesn't always happen. I'll show you that next. The other thing that happens is that if a subreport has only a few names and the other subreports
in the same row in the designer have many more names in the list, a blank row sometimes gets inserted after the shortest of the subreports, right in the middle of the longer subreports.
Here's what the export look like sometimes. This is perfect.
It's inconsistent. In some cases, groups with two columns will wind up with the black borders underneath each name and with a line break where the shorter subreport ends, and sometimes not. It isn't predictable by the number of columns.
I really have to resolve this. This HAS to be exported exactly as seen in the preview to Excel. This is exported as a spreadsheet with different group-named tabs, and the intent is to import it into Google Sheets. Again, I've check for consistent
row height, I've check grow and shrink, which doesn't really seem to have any effect. The subreports are aligned going across. If they weren't, you'd see other anomalies. The columns are aligned as they need to be, but inserted columns aren't
the issue here.
I don't know which version of Excel the SSRS export uses. I'm not sure how to check that or change that, and I don't know if that's the problem anyway.
I really have checked everything I know to check. If you have any suggestions or alternatives, I'd appreciate hearing.
Thanks!
SSRS datasource for "Azure Log Analytics"?
Hi,
The Microsoft document for "Data Sources Supported by Reporting Services" currently does not have support for "Azure Log Analytics". Are there any plans to make this available?
Thanks in advance.
Anthony LaMark
Securing SSRS reports
We have two reports we're trying to secure, and I'm having difficulty locking them down to the extent I want to. Essentially, we have an asp page where one of the buttons launches an Excel export of an SSRS report, passing the parameters through the
URL (including the user they're logged into the app as). In SSRS, the parameters are all hidden. However, if the user was able to figure out (or was given) the URL, they can type it into a browser manually, including someone else's name as a parameter,
and get access to that other person's data. Admittedly, this is pretty unlikely, since they never see the URL or the parameters, but still possible. How can I lock this down? The only thing I can think of would be if I could somehow check
a referrer session variable or something similar, to ensure that they're coming from the app and not typing it manually, but I can't find any way in SSRS to access that information.
The second report is a bit different scenario. In some ways, it's a bit easier to control because the security should be based on their actual Windows login (so User!UserId) not their app login, or any sort of parameter they can select. However, it gets tricky because I need the queries for parameter options to be different depending on whether they're one type of user or another. The easiest way I was able to find to do this was just have two different reports - one with one set of parameter choices, and the other with another, and just control who can access the reports based on ReportManager security. This works perfectly, but the problem is this - the body of those two reports is the same. So if I need to make a change, I have to make it twice. So I've created a subreport for the body that just gets the parameters from the parent report. This serves the data properly, but how do I keep people from bypassing the first level of security and just accessing the subreport directly?
Thanks!
Best way to Decrypting SSRS URL parms with Blowfish cypher
I need the best way to use Blowfish to decrypt passed parameters in an SSRS URL report link from a vendor application. I'm not finding very much information on native supports for this within SSRS or what is required for creating a function in Java, or .NET in SSRS to be called before the filter is applied.
Thanks in advance for information!
How to split a shapefile for SSRS report
Subquery taking too much time
I am creating a view with this query, but since I added the subquery to it, the script has been taking too much time to run without completion. any help on how to make the query work faster and better?
CREATE VIEW [dbo].[Vw_KPI]
AS
WITH
CTE_ReadyAS
(SELECT
equipmentname, equipmentfleet
,ShiftMonth, ShiftYear,sum(duration)as Duration from [EquipmentStatus] WHERE EquipmentStatusName
='Ready'
groupby
ShiftMonth, ShiftYear,
equipmentname, equipmentfleet) ,
CTE_DelayAS (SELECT equipmentname, equipmentfleet,ShiftMonth, ShiftYear,sum(duration)as
Duration from [EquipmentStatus]
WHERE EquipmentStatusName =Delay
groupby ShiftMonth, ShiftYear,equipmentname, equipmentfleet) ,
CTE_StandbyAS (SELECT equipmentname, equipmentfleet,ShiftMonth, ShiftYear,sum(duration)as
Duration from [EquipmentStatus]
WHERE EquipmentStatusName =Standby
groupby ShiftMonth, ShiftYear,equipmentname, equipmentfleet) ,
CTE_DownAS(SELECT equipmentname, equipmentfleet,ShiftMonth, ShiftYear,sum(duration)as
Duration from [EquipmentStatus]
WHERE EquipmentStatusName =Down
groupby ShiftMonth, ShiftYear,equipmentname, equipmentfleet) ,
selectE.equipmentfleet, E.equipmentname, E.shiftmonth, E.ShiftYear,ISNULL(r.Duration,0)as ReadyDuration ,ISNULL(d.Duration,0)as DelayDuration,ISNULL(S.Duration,0)as StandbyDuration ,ISNULL(do.Duration,0)as DownDuration
,Past7Days_AP =(SELECTCASEWHEN(Sum(cast(isnull(d.Duration,0)asbigint)))=(Sum(cast(isnull(r.Duration,0)asbigint))+Sum(cast(isnull(d.Duration,0)asbigint))+Sum(cast(isnull(do.Duration,0)asbigint))+Sum(cast(isnull(S.Duration,0)asbigint)))THEN 0WHEN (Sum(cast(isnull(r.Duration,0)asbigint))+Sum(cast(isnull(d.Duration,0)asbigint))+Sum(cast(isnull(S.Duration,0)asbigint)))=0THEN-1 ELSECast(Round(((Sum(cast(isnull(r.Duration,0)asbigint))+Sum(cast(isnull(d.Duration,0)asbigint))+Sum(cast(isnull(s.Duration,0)asbigint)))*100.0)/ (Sum(cast(isnull(r.Duration,0)asbigint))+Sum(cast(isnull(d.Duration,0)asbigint))+Sum(cast(isnull(S.Duration,0)asbigint))+Sum(cast(isnull(Do.Duration,0)asbigint))),1)asNumeric(4,1))ENDASAP FROM [DownEvents] DE
LEFTJOIN CTE_Ready RON R.equipmentname= E.equipmentname
LEFTJOIN CTE_Delay D ON D.equipmentname= E.equipmentname
and E.EquipmentName= DE.EquipmentName)FROM [EquipmentStatus] Ewith(nolock)
LEFTJOIN CTE_Ready R ON R.equipmentname= E.equipmentnameand R.ShiftMonth = E.ShiftMonth and R.ShiftYear= E.ShiftYear
LEFTJOIN CTE_Delay D ON D.equipmentname= E.equipmentnameand D.ShiftMonth = E.ShiftMonth and D.ShiftYear= E.ShiftYear
LEFTJOIN CTE_Standby S ON S.equipmentname= E.equipmentnameand S.ShiftMonth = E.ShiftMonth and S.ShiftYear= E.ShiftYear
LEFTJOIN CTE_Down Do ON Do.equipmentname= E.equipmentnameand Do.ShiftMonth= E.ShiftMonth and Do.ShiftYear = E.ShiftYear
leftjoin [DownEvents] DE WITH(nolock)on DE.EquipmentName= e.EquipmentNameand e.ShiftID = DE.ShiftID
groupby E.equipmentfleet, E.equipmentname, E.ShiftYear, E.shiftmonth,r.Duration, d.Duration , S.Duration , do.Duration
Do you want to be acknowledged as Microsoft SSRS & Power View Guru? Submit your work to Sep 2019 competition!
What is TechNet Guru Competition?
Each month Microsoft TechNet Wiki council organizes a contest of the best articles posted that month. This is your chance to be announced as MICROSOFT TECHNOLOGY GURU OF THE MONTH!
One winner in each category will be selected each month for glory and adoration by the MSDN/TechNet Ninjas and community as a whole. Winners will be announced in dedicated official post, a tweet fromMicrosoft Wiki Ninjas Twitter account, links will be published atMicrosoft TNWiki group on Facebook, and other acknowledgement from the community will follow.
Some of our biggest community voices and many MVPs have passed through these halls on their way to fame and fortune.
If you have already made a contribution in the forums or gallery or you published a nice blog, then you can simply convert it into a shared wiki article, reference the original post, and register the article for the TechNet Guru Competition. The articles must be written in Sep 2019 and must be in English. However, the original blog or forum content can be from beforeSep 2019.
Come and see who is making waves in all your favorite technologies. Maybe it will be you!
Who can join the Competition?
Anyone who has basic knowledge and the desire to share the knowledge is welcome. Articles can appeal to beginners or discuss advanced topics. All you have to do is to add your article to TechNet Wiki from your own specialty category.
How can you win?
- Please copy/Write over your Microsoft technical solutions and revelations to TechNetWiki.
- Add a link to your new article on THIS WIKI COMPETITION PAGE (so we know you've contributed)
- (Optional but HIGHLY Recommended) Add a link to your article at the TechNetWiki group on Facebook to get feedback and tips from the council members and from the community. The group is very active and people love to help. You can even get direct improvements to your article before the contest starts.
Do you have any question or want more information?
Feel free to ask any questions below, or Join us at the official MicrosoftTechNet Wiki groups on facebook. Read More about TechNet Guru Awards.
If you win, people will sing your praises online and your name will be raised as Guru of the Month.
PS: Above top banner came from Rajeesh Menoth.
![]() | Ronen Ariely [Personal Site] [Blog] [Facebook] [Linkedin] |
Combine 2 queries
I have very limited understanding of SQL queries, and need to add more columns to a query that I already have, but not sure how it's done. So this query is returning the count of each OS version in the collection CM000001. How can I add more columns to this for collections CM000002, CM000003, and so forth?
SELECT rsys.Name0
AS 'Computer Name', Caption0 as 'Operating System'
FROM v_R_System
rsys
JOIN
v_GS_OPERATING_SYSTEM os ON rsys.ResourceID = os.ResourceID
JOIN
v_FullCollectionMembership fcm on os.ResourceID = fcm.ResourceID
WHERE fcm.CollectionID
= 'CM000001' or fcm.CollectionID = 'CM000001'
ORDER
BY rsys.Name0
+++++++++++++++++++++++++++++++++++++++++++++++
SELECT rsys.Name0
AS 'Computer Name', Caption0 as 'Operating System'
FROM v_R_System
rsys
JOIN
v_GS_OPERATING_SYSTEM os ON rsys.ResourceID = os.ResourceID
JOIN
v_FullCollectionMembership fcm on os.ResourceID = fcm.ResourceID
WHERE fcm.CollectionID
= 'CM000002' or fcm.CollectionID = 'CM000002'
ORDER
BY rsys.Name0
Hide rows that are displayed as #Error
Removing white spaces on report because of footer
Hi ,
Is there any way i can get rid of white spaces because of footer. I can't remove footer since there are some details in it should display only at the bottom/end of the report irrespective of number of pages. (have a 3 inch footer which displays only at last page)
Filtering category group by another column in SSRS line chart?
I am creating line chart in a paginated SSRS report and my data consists of three columns and looks something like this:
Date | MonthYear | Percentage
20.09.2018 | Sep 2018 | 29.8
29.09.2018 | Sep 2018 | 87.5
30.01.2019 | Jan 2019 | 18.3
For creating my line chart I need MonthYear
on
X-axis and Percentage
on
Y-axis so my dataset consists of only these two columns.
How can I filter the rows to get data for the last 10 months but get percentage only as if I were aggregating on MonthYear
?
In my Power BI Desktop version of report I am only using the last two columns with report-level filter on Date to filter the given visuals on last 10 months.
Thanks.
Using browser / URL to load report, with rc:Toolbar=false, report does not refresh
I've got an app that hosts a browser control. In it, I loop through a set of reports (displaying a dashboard of them). The problem is, I don't want the toolbar to display, so I'm using rc:Toolbar=false. This gets the toolbar to not display, but the problem is, the reports don't refresh (I have timestamps in the reports, and they remain the same).
I'm not caching the reports- I have them set to the default setting of run the report each time.
So, how can I get both the toolbar hidden AND the report to be refreshed? I tried looking at the stylesheets, but can't figure out how to hide the entire report toolbar using those.
Thanks,
Chris
Script Error when user changes paper size in Report Viewer control
Using the Nuget package: Microsoft.ReportingServices.ReportViewerControl.WebForms, version 140.1000.523
Hosting the report viewer control inside a Windows Forms application using the WebBrowser control
User selects the Print Icon, and chooses a different paper size than default, then clicks Print.
a Script Error is shown:
Line: 1
Char: 25445
Error: Unable to get property 'Width' of undefined or null reference
Code: 0
URL: ..../Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=14.0.1016.229&Name=ViewerScript
When we use the same URL in an actual web browser, there is no error shown. Can anyone help identify what might be causing this? or what we can do to avoid it?
I have also verified that the error still occurs when using the latest Nuget package.Edit existing SSRS reports from report portal
Hello,
I am new to SSRS and currently need to edit existing SSRS report for whom report portal and report server links are given.But when I click on 'Edit' then it is asking to select 'Report Builder' app which I do not have and am not sure how to configure the settings to access the reports.
Kindly help on above question.
Exported Excel Problem SSRS
Hi All,
I'm facing some problem when I extract excel file from ssrs report.
I made merged report cell, so in preview tab it shows just one cell.
However after I extract excel file from the report, the excel file still shows divided cell.
I don't know why preview and excel are different each other.
Please give me any advice for the reason.
Thanks.
Line chart exceeds the maximum value
Hello,
I have a line chart whose maximum Y axis value is set to 101. The line displays points whose maximum value is 100 but there is an effect on the line where it seems the line exceeds the maximum value of 100.
Sadly i cannot upload an image right now but as displayed in my chart, around the X values 8 and 10, it seems the line exceeds 100 on the Y value but the maximum Y value is 100 in my data.
Issues with Parent Child Relational report
Greetings - I have an issue I don't quite know how to fix.
I have a parent child dimension table that links to a fact table. The top level of the dimension table generally never has data posted against it. I jointed on a left outer join (fact to dimension) to ensure I don't lose fact records.
When I set up the report with the recursive parent It leaves off this top level. I think this is because there is no data posted against it? When I just use the hierarchy I see all levels. Has anyone ever run up against this? How would I fix it?
Local report in asp.net website
Hi Guys,
I was wondering has anyone ever used a form to enter values for the parameter values the report would use. How do I set a report to use a stored procedure and then filter the data displayed in the report based on the values the user enters on the aforementioned form. Unfortunately 2 of the parameter values are dates on the form, so I think I have to do some conversion of this format 03/20/2019 to 20-03-2019. Thanks !!!
SSRS Subscription Error
Hi,
I am receiving below error when trying to run subscription to copy file to FTP folder.The service account i am using has write access to create FTP directory.
Log File
library!WindowsService_3!4fc8!09/03/2019-15:12:28:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.WindowsAuthz5ApiException: , Microsoft.ReportingServices.Diagnostics.Utilities.WindowsAuthz5ApiException: Windows returned a ERROR_ACCESS_DENIED
error when Reporting Services attempted to call the Windows Authz APIs. If this issue persists the Reporting Services account may not possess permission to perform authentication checks. Check the Windows Authz documentation for more information and details
on diagnosing issues. Authz method: AuthzInitializeContextFromSid, Error code: 5, UserName: KPadibandla.;
library!ReportServer_0-2!260c!09/03/2019-15:12:28:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.WindowsAuthz5ApiException: , Microsoft.ReportingServices.Diagnostics.Utilities.WindowsAuthz5ApiException: Windows returned a ERROR_ACCESS_DENIED
error when Reporting Services attempted to call the Windows Authz APIs. If this issue persists the Reporting Services account may not possess permission to perform authentication checks. Check the Windows Authz documentation for more information and details
on diagnosing issues. Authz method: AuthzInitializeContextFromSid, Error code: 5, UserName: KPadibandla.;
library!WindowsService_3!4fc8!09/03/2019-15:12:29:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.WindowsAuthz5ApiException: , Microsoft.ReportingServices.Diagnostics.Utilities.WindowsAuthz5ApiException: Windows returned a ERROR_ACCESS_DENIED
error when Reporting Services attempted to call the Windows Authz APIs. If this issue persists the Reporting Services account may not possess permission to perform authentication checks. Check the Windows Authz documentation for more information and details
on diagnosing issues. Authz method: AuthzInitializeContextFromSid, Error code: 5, UserName: KPadibandla.;
library!WindowsService_3!4fc8!09/03/2019-15:12:29:: w WARN: AccessCheck: Win32 error:6
library!WindowsService_3!4fc8!09/03/2019-15:12:29:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: , Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to user '' are
insufficient for performing this operation.;
library!WindowsService_3!4fc8!09/03/2019-15:12:29:: i INFO: Initializing EnableExecutionLogging to 'True' as specified in Server system properties.
subscription!WindowsService_3!4fc8!09/03/2019-15:12:29:: i INFO: Microsoft.ReportingServices.Diagnostics.Utilities.RSException: The permissions granted to user '' are insufficient for performing this operation. ---> Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException:
The permissions granted to user '' are insufficient for performing this operation.
notification!WindowsService_3!4fc8!09/03/2019-15:12:29:: e ERROR: Error occurred processing subscription 401d5bb6-c865-4685-a915-241362a261c1: Failure writing file test : The permissions granted to user '' are insufficient for performing this operation.