Quantcast
Viewing all 1418 articles
Browse latest View live

Hide Textbox with nested IIF in RDLC expression

I'm new to reporting with rdlc.

I want to hide a Textbox if two statemt are true:

I already tried this expression:

= IIF(Not(String.IsNullOrEmpty(First(Fields!PartNumber.Value, "PackingData"))), IIF(First(Fields!IsDisposal.Value, "PackingData") = "False"))

But it doesn't work. I get this error message:

Microsoft.Reporting.WebForms.LocalProcessingException  An error occurred during local report processing.InnerException: The definition of the report '' is invalid.InnerException: An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC40000] \"RequestMinimum\" ist veraltet: \"Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.\".’.

I hope someone can help me with this.


SSRS Date Parameter Allow Nulls but date picker is enabled

Has anyone run into this problem with SSRS where you have the date parameter set to "allow null" and the default value is set to (NULL) but when you run the report from the web page the datepicker is enabled even though the Null is checked like below. Which allows the user to pick a date even though the Null box is checked. When I run it from the SSRS server or from VS in preview mode the datepicker is correctly disabled until the check box is un-checked. Is this a bug or something else?

I have to use the iframe as we had to incorporate the report viewer in a MVC5 environment so I had to add an aspx page inside a MVC5 with Iframe. I am also using the 14.0 control so I suspect all of these combinations may well be causing my problem.

Any help would be appreciated

Hide Rows in Sub Group that are Duplicates

SSRS - ODBC Connector to Salesforce - Multi Value Parameter Trouble

Hello,
I'm using an ODBC Connector to connect to our Salesforce data. I do not have the following issue in my normal SQL environment.
In SSRS I'm trying to setup a simple multi value parameter.

I run into an issue when I attempt to add a WHERE clause in Dataset Properties:
EXAMPLE: WHERE Country IN (@Country)

When I click ok I get the "Define Query Parameters" box then if I click ok again it tells me"Could not create a list of fields for the query. Verify that you can connect to the data source and that your query syntax is correct. A parameter with name "Country" is missing in parameter collection.

Again I do not have this issue with my normal database. Also, it works when I use a filter in tablix properties but I'd rather not do it that way.

Hopefully someone can tell me what I'm missing. Thanks in advance. 

Execution Failed for shared dataset

Hello,

I created a couple of different reports in SSRS.  They both use the same Data Source but they use different Datasets which are Stored Procedures.

The Stored procedures are in the same database.  They both have the same permissions.   I can open each report without any issues. 

When a domain user accesses the first report...it displays fine....when they access the second report they get the error:

An error has occurred during report processing (rsProcessingAborted).
The execution failed for the shared data set 'DataSet1', (rsDataSetExecution Error)
Query execution failed for the dataset, (rsErrorExecutingCommand)
For more information about this error navigate to the report server on the local server machine, or enable remote errors.

( I don't know where the last line is trying to point me to, as I am new to SSRS).

I am stumped by this, as the Store Procedures sit next to each other in the same Database and they both have the same privileges. 
There is an account set up for Domain Users that they both use also Execution was granted to public as well.

any ideas?

Thank you  

Issues with SSRS subreport visibility

I build a SSRS report with two sub reports in the List and parent report will pass following parameters to these two sub reports.

Part  WorkUnit           PayDateDepartment
160612018-03-09011
160622018-03-09011
160632018-03-09011
260612018-03-09011

Based on the value of field Part which is Integer type, supposedly if Part = 1 then goes subreport1 else goes subreport2 by setting Visibility expression=iif(Fields!Part.Value = 1,false,true) on subreport1 andiif(Fields!Part.Value = 2,false,true) on subreport2.The report totally works on the developer computer but once deployed to report server, second subreport doesn't show up.

If I change expression iif(Fields!Part.Value <> 1, true, false) on subreport1 and iif(Fields!Part.Value <> 2,true, false) on subreport2. It works on the developer computer. It shows two subreports but parameters for subreport1 also send to subreport2.

What is wrong the SSRS report? Thanks in advance.

Unable to add Data points in Stack Charts using SSRS

1. Stack charts - Data visualization : Labels (with number and colour codes) are displayed e.g. each of four different ageing buckets in “stage wise ageing of Open PRs"

Aternatively  if we can use any other charts showing data points in SSRS. Please advise.

 

Integrating SSRS into a asp.net website using forms authentication

Hi all,

Struggling majorly with troubleshooting an asp.net / SSRS setup. I have an existing web server with an asp.net web application on it, it is using forms authentication and windows authentication is disabled on it.

There is an embedded reportviewer control in one of the pages and there are some report server credentials configured in web.config. Since the reporting server was migrated to a new one, the embedded control was constantly showing a 401 unauthorised error.

My theory is that I will need to configure forms authentication on the SSRS server.

Does anybody have any experience doing this or can tell me if i'm on the right track?

Thanks!


PostBackUrl - Page not loading following image select

Hello,

Apologies if cross posting is not allowed but I have also posted this question in Home/ASP.NET Forums/General ASP.NET/Getting Started as I am not sure which area it belongs in.

This is not my area of expertise so please excuse me if this question is already answered and / or missing some required details.

I have been tasked with managing the move on an in-house built intranet application from Windows 2003 to Windows 2012 R2.

The old architecture was a single node running SQL 2005 and SQL Reporting Services with IIS v6.0 hosting the intranet site.

The new architecture is 1 node running SQL 2016, and a 2nd node acting as an application server running SQL Reporting Services and IIS 8.5 and hosting the intranet site.  Kerberos authentication is being used to authenticate on the domain.

The majority of the site is working on the new architecture but there is an image on the home page which links to ReportingServices 'http://alias.com/reports/browse'.  When the image button is selected a HTTP 403 error is returned but if the page is refreshed then the page loads and is accessible.   If the image is selected on the old single host the link is working without issue.

If I manually enter the URL directly in the browser 'http://alias.com/reports/' or 'http://mycomputer.com/reports/' or 'http://mycomputer.com/reports/browse' and press enter the page loads without issue.

If I try to load the page by selecting the the image / icon with F12 Developer Tools turned on in IE on the new architecture - the console view states: -

HTML1300: Navigation occurred.
http_403.htm
HTML1524: Invalid HTML5 DOCTYPE. Consider using the interoperable form "<!DOCTYPE html>".
http_403.htm (1,1)

and if I select the hyperlink from the HTML1524 row above in Console view the debugger page shows

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

The E:\WebSites\alias.com\Default.aspx page has the following code relating to the button

<div class="float">
<asp:ImageButton ID="ibSqlReports" runat="server" SkinID="ibsqlreports" PostBackUrl="~/reports/browse" Visible="True" />
</div>

The web developer working on this says he does not experience the issue when he tests but the app developer, myself and other people I have got to test all do.

If I change the PostBackUrl as follows and point it at 'http://www.google.com' a page does open but states - "413. That’s an error. Your client issued a request that was too large.  That’s all we know."

<div class="float">
<asp:ImageButton ID="ibSqlReports" runat="server" SkinID="ibsqlreports" PostBackUrl="http://www.google.com" Visible="True" />
</div>

I have read lots of different posts on HTML 5 and possible folder permission issues and setting <identity impersonate="true" /> in web.config but everything I have tried has not been successful.

Could someone help me troubleshoot this further?

How assign max value of subtotal to the interval of the horizontal axis

I want assign max value of subtotal of a field to the interval of the horizontal axis.

for eg There is a column name newsub which has subtotal sum(newsub). I want to assign max value of sum(newsub) to the interval of vertical axis in the line graph. I tried interval: =Max(Sum(Fields!Sales.Value,"Dataset1")), =Max(Sum(Fields!Sales.Value,"groupbydate")) 

check total page number greater than one using expression in rdlc report

 I want to write a expression for a textbox that it will only show if the page count is greater than one then it will be only showed otherwise we will not display.So if the report is one page that textbox will not show but if the report is generated by many pages then it will be showed. Below expression i have tried

=IIf(Globals!TotalPages > 1,True,False)

web form application running ssrs reports

I have an existing 2010 web form application that runs ssrs 2010 reports within the application. I would like to upgrade to visual studio 2012 or visual studio 2013 or newer version. Can you tell me if I would have problems within the application running the ssrs reports? Can you tell me what I can do to upgrade to a newer version of visual studio for both the web form application and the ssrs reports? Can you tell me what I may need to consider if problems arise? Do I need to somehow upgrade the report viewer control and if so, what do I need to do to update the report viewer control?

Images moving to next page

Hi,

Im trying to display few images in SSRS group wise, images are loading fine; but after the images are loaded on the first row, the remaining images are moved to the second page and so on. I need all the image of a group to stay together.

For example,  if there are 6 images, 3 pages are created with 2 images each in one page. I need to have all the 6 images together in three rows in a single page.

Kindly someone assist me in this.

HELP ME!!

I want to have 2 conditions in a table within the rdlc report in the expression for visibility
something like that:
=
First (Fields! DescripcionDestinoPaciente.Value <> "In Evaluation" orElse
Fields! DescripcionDestinoPaciente.Value = "Alta")

I do not know how to do it, if someone could help me.

Unable to view the value on the x axis in the Column chart

I am trying to create a column chart in my report which shows weekly count.

With Y- axis being the total count and X-axis being the week number of the year.

I am using the below code as the dataset in the report.

Select datepart(week,[Resolve Date/Time(UTC/GMT)]) AS Resolve_Week, Count(*) as Total_IN_ID FROM [dbo].[SybsqlMongo$]
Group by datepart(week,[Resolve Date/Time(UTC/GMT)]), year([Resolve Date/Time(UTC/GMT)])
ORDER BY Resolve_Week asc

The result of this code would display as below, in SQL.

Resolve_Week Total_IN_ID
21                       219
22                       162
23                       667
24                       465

Now, in my column chart I have selected Total_IN_ID as my Y-axis and Resolve_week being X-axis. I am able to see the values for Total_IN_ID. I don't know if I have missed something, because I am unable to see the Resolve_week numbers corresponding to the Total_IN_ID lines, on the horizontal axis. 


Move reports to a new server

Our customer is moving their 2008R2 SQL Server to a new server using SQL 2016 Std.  Is there an easy way to move all reports, say, backup and restore the 2 db's?  Thanks.

Handle with Reporting Services exceptions to output custom message - error The type 'ReportErrorEventArgs' exists in both 'Microsoft.ReportViewer.WebForms' and 'ReportingServicesWebServer'

My first purpose to handle with Microsoft Reporting Service error and output custom message with help of ReportErrorEventHandler. See more on msdn about ReportErrorEventHandler.
To test it I have created ASP.net Empty Web Site in Visual Studio 2017 (.NET Framework 4.6.1). Added masterpage ReportViewer.aspx, code behind page ReportViewer.aspx.cs, config file Web.Config. Registered two assemblies ReportingServicesWebServer and Microsoft.ReportViewer.WebForms

<%@ Register assembly="ReportingServicesWebServer, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.ReportingServices.WebServer"  TagPrefix="RS"%><%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

because default Microsoft Reporting Services page contains RS:ReportViewerHost user control which requires ReportingServicesWebServer assembly, and ReportErrorEventHandler requires Microsoft.ReportViewer.WebForms according to msdn article mentioned above.

As a result a get an error

The type 'ReportErrorEventArgs' exists in both 'Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, 
PublicKeyToken=89845dcd8080cc91' and 'ReportingServicesWebServer, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'    
ReportViewer.aspx.cs 

When I'm trying to use namespace Microsoft.ReportingServices.WebServer instead of Microsoft.Reporting.WebForms, it tells me

The type or namespace name 'ReportErrorEventArgs' could not be found (are you missing a using directive or an assembly reference?) ReportViewer.aspx.cs

Also I didn't find how to use alias for references to use specific assembly, because there is noreference section in my solution explorer.

How could I hold both assemblies and get rid of an error. Thanks in advance!

ReportViewer.aspx.cs code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Microsoft.Reporting.WebForms
{
    public partial class ReportViewer1 : System.Web.UI.Page
    {
        public void ReportErrorEventHandler(object sender, ReportErrorEventArgs e)
        {
            Exception ex = e.Exception;
            ReportErrorMessage.Text = ex.Message;
            while (ex.InnerException != null)
            {
                ex = ex.InnerException;
                ReportErrorMessage.Text = ReportErrorMessage.Text + ex.Message;
            }
            ReportErrorMessage.Visible = true;
            if (ReportErrorMessage.Text.Contains("rsErrorOpeningConnection"))
            {
                ReportErrorMessage.Text = "The database is under everyday maintanence now. Please try again in 20 minutes.";
            }
            e.Handled = true;
        }
    }
}

ReportViewer.aspx code:

<%@ Register assembly="ReportingServicesWebServer, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.ReportingServices.WebServer"  TagPrefix="RS"%><%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %><%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReportViewer.aspx.cs" Inherits="Microsoft.Reporting.WebForms.ReportViewer1" EnableEventValidation="false" %><!DOCTYPE html><script runat="server"></script><html><head><meta charset="utf-8" /><title></title></head><body><form id="ReportViewerForm" runat="server"><asp:scriptmanager runat="server"></asp:scriptmanager><asp:label runat="server" id="ReportErrorMessage" Visible="false"></asp:label><table cellspacing="0" cellpadding="0" width="100%" height="100%"><tr height="100%"><td width="100%"><rsweb:ReportViewer ID="ReportViewerControl" runat="server" ProcessingMode="Remote" Height="100%" Width="100%" OnReportError="ReportErrorEventHandler"><ServerReport ReportPath="<ReportPath>" ReportServerUrl="<URL>" /></rsweb:ReportViewer></td></tr></table></form></body></html>

Note that ReportViewer.aspx does not contains RS:ReportViewerHost user control, but contains rsweb:ReportViewer, because it is test project. And if remove ReportingServicesWebServerassembly it will work as expected. But production web page requires both assemblies, ReportingServicesWebServer for RS:ReportViewerHost user control and Microsoft.ReportViewer.WebForms to use ReportErrorEventHandler.

ArgumentException: Font '?' cannot be found.] (Asp.net Reports)

Hi guys, i have a scary problem, i have used the rdl files of an already existing reports (sql reporting services)

and succesfully converted them (to rdlc files) to asp.net local report (using reportviewer). and it works very good

on the development server,...However, it does not work completely on test(cert) server:

i actually can load the reports, except one which has graphics in it, on the other hand i can not export any of them

(even those reports that can be loaded to a page), so please help me, the point is that i have to have a pretty much of a good idea

before i go to those test server guys, i dont have access to test server myself.  i get 4 exception at once, and i get them when i want to export to pdf, not just the graphic one but also all other reports. Interesting point is that the same reports (i mean the original rdl reports on sql reportingservices)

works wel on the same server (test server), that causes me to question whether it is about lack of some font on the server

i appreciate any help or idea's, and thanks: 

 [ArgumentException: Font '?' cannot be found.]
   System.Drawing.FontFamily.GetGdipGenericSansSerif() +207809
   System.Drawing.FontFamily.CreateFontFamily(String name, FontCollection fontCollection) +116
   System.Drawing.FontFamily..ctor(String name, Boolean createDefaultOnFail) +13
   System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style) +77
   Microsoft.ReportingServices.Rendering.ImageRenderer.CanvasPDF.CreateFont(String family, Single size, FontStyle style) +54
   Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionBase.CreateDefaultFontPens() +33
   Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionPDF..ctor(CreateAndRegisterStream createAndRegisterStreamCallback, Report report) +428
   Microsoft.ReportingServices.Rendering.ImageRenderer.PdfReport.RenderReport(Report report, NameValueCollection deviceInfo, EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions, CreateAndRegisterStream createAndRegisterStreamCallback, Int32 streamPageNumber)+32
   Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions, CreateAndRegisterStream createAndRegisterStream) +29

[ReportRenderingException: An error occurred during rendering of the report.]
   Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions, CreateAndRegisterStream createAndRegisterStream) +70
   Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderSnapshot(IRenderingExtension renderer, CreateReportChunk createChunkCallback, RenderingContext rc, GetResource getResourceCallback) +1124

[WrapperReportRenderingException: An error occurred during rendering of the report.]
   Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderSnapshot(IRenderingExtension renderer, CreateReportChunk createChunkCallback, RenderingContext rc, GetResource getResourceCallback) +1681
   Microsoft.Reporting.LocalService.RenderWithDataCache(PreviewItemContext itemContext, ParameterInfoCollection reportParameters, IEnumerable dataSources, DatasourceCredentialsCollection credentials, IRenderingExtension renderer, ReportProcessing repProc, CreateAndRegisterStream createStreamCallback, ReportRuntimeSetup runtimeSetup) +1693
   Microsoft.Reporting.LocalService.Render(PreviewItemContext itemContext, Boolean allowInternalRenderers, ParameterInfoCollection reportParameters, IEnumerable dataSources, DatasourceCredentialsCollection credentials, CreateAndRegisterStream createStreamCallback, ReportRuntimeSetup runtimeSetup, ProcessingMessageList& warnings) +227
   Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, CreateAndRegisterStream createStreamCallback, Warning[]& warnings) +235

[LocalProcessingException: An error occurred during local report processing.]
   Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, CreateAndRegisterStream createStreamCallback, Warning[]& warnings) +276
   Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings) +189
   Microsoft.Reporting.WebForms.LocalReport.Render(String format, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings) +28
   Microsoft.Reporting.WebForms.LocalReportControlSource.RenderReport(String format, String deviceInfo, NameValueCollection additionalParams, String& mimeType, String& fileNameExtension) +52
   Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response) +153
   Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +202
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +303
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

 

 

Incomplete report using MS Report Viewer 12 with SSRS 2017 from WebFarm

Project: Visual Studio 2017 - Web Application compiled using .Net 4.6.2 with Async SQL session state to a SQL Server 2017 instance

WebFarm Framwork configuration - using shared content, centralized certificates, ARR with Affinity set to Client 

1 - Windows Server 2012 gateway server

4 - Windows Server 2012 content servers

3 - Windows Server 2012 - SQL Report Servers using custom load balancing

When I deploy the application to a single server the reports render without issue but when I deploy it to the web farm the report viewer only renders the supplied parameters but any dynamic options (drop down lists) are disabled and the drop down button images are missing.

Image may be NSFW.
Clik here to view.
incomplete report

Tablix sum of a column based on group by parameter

Hi

I need to groupby a column name in tablix

For ex: I need to display like the following:

Invoice Number |- Customer Name| - Invoice amount| - Total amount for the customer

1. Need to group-by the Customer Name and

2. The Total amount for the customer should be the sum of the Invoice amount for each Customer Name. (Basically to display the total amount to be paid for each Customer based on their all invoices)

3. There is a checkbox as "Include Invoice number" and if the checkbox is checked then the column of 'Invoice Number' will be shown in the tablix otherwise it will be hidden. How to write expression for this.

Thanks in advance
Viewing all 1418 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>