Telerik Forums
Reporting Forum
1 answer
1.1K+ views

 I am using Telerik report in my c# project using their REST service, I am using the R1 2017 version, the parameters are all loading and their respective data from the database is also loading but I am getting this error when I click on preview,

When I analyzed the Telerik DLL with the error it meant that the parameters values list is null, but it can't be because I checked the network log, all the parameters are being passed to the REST API. This is the payload I'm sending

{"report":"Activity/Registered Users Report.trdp/VisionReport","parameterValues":{"CPR":"353464654","EMAIL":"","MOBILE":"","FromDate":"2023-12-31T00:00:00.000Z","ToDate":"2024-01-01T00:00:00.000Z","ChannelId":["006","002","005"]}}

to this telerik URL :

https://localhost:44302/api/reports/clients/aaf42228070/instances

When I run the same code and report in my local environment it runs properly. Still, when I deploy the code to the server, I receive this error, I ran the report on Telerik Designer on the server, there also it loads fine, it only causes issues when I am loading it in the browser on the server. Following is the complete error I'm receiving from Telerik.

 {message: "An error has occurred.", exceptionMessage: "Value cannot be null. ↵Parameter name: source",…}
    exceptionMessage
    : 
    "Value cannot be null.\r\nParameter name: source"
    exceptionType
    : 

"System.ArgumentNullException"
message
: 
"An error has occurred."
stackTrace
: 
"   at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)\r\n   
at Telerik.Reporting.Services.Engine.PersistableCollection`1.GetEnumerator()\r\n   
at Telerik.Reporting.Services.Engine.KeyItemPersistableCollection`2.ResolveItem(K referredInstanceKey, Boolean& newItem)\r\n   
at Telerik.Reporting.Services.Engine.ReportEngine.CreateReportInstance(String clientID, String report, Dictionary`2 parameterValues)\r\n   
at Telerik.Reporting.Services.WebApi.ReportsControllerBase.CreateInstance(String clientID, ClientReportSource reportSource)\r\n   
at lambda_method(Closure , Object , Object[] )\r\n   
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_1.<GetExecutor>b__3(Object instance, Object[] methodParameters)\r\n  
 at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   
 
 
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   
 at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   
 
 
 
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   
 at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   
 at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   
 
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n  
 at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()
1 answer
275 views

Hi,

We are implementing Telerik Reporting in our ASP.NET hosted Blazor WASM application (using .NET 6).
So far we based our implementation on the following sample: https://github.com/telerik/reporting-samples/tree/master/BlazorViewerAndDesignerExample.

We are looking for a way to pass the User from HttpContext of the ReportsController (for viewer and designer controller) to the WebService datasource, so we can authorize the datasource request based on the user ClaimsPrincipal. The webservice datasource is an api controller that is part of the same ASP.NET project.

Is this possible?

Alternatively, if we could pass a certain cookie from the request to the ReportsController to the webservice datasource request, we could make the authorization work with that.

Kind regards,

Lennert

Momchil
Telerik team
 answered on 10 Jan 2024
1 answer
144 views

Hi Team,

I've dabbled with this a little bit, but I've got a parameter in a report that's set to take an array of images. I've inserted a list and set the datasource to the value of the parameter.


The value of this parameter will be something like:

[ "www.images.com/cat.jpg", "www.images.com/dog.jpg", "www.images.com/goldfish.jpg"]

How can I use this structure to assign these values to a Picture Box? I know ReportItem.DataObject exists, but I'm never quite sure how to use it, or if that's even the right approach. Guidance is much appreciated!

Thanks,
J.T.

Dimitar
Telerik team
 answered on 09 Jan 2024
1 answer
251 views
We have a lot of reports saved in the plain text .trdx files and in a lot of cases prefer to use this format. I've seen .trdx refereed to as the "legacy" format over .trdp but was wondering if it's safe to continue using .trdx for the foreseeable future. 
Dimitar
Telerik team
 answered on 08 Jan 2024
1 answer
74 views

Hello,

I am having an issue with creating a new style sheet in the web report designer. I would like to use a "StyleSelector" selector type, but when adding a new selector to the style rule, it defaults to "TypeSelector". How do I change this to be a "StyleSelector"?

Thanks,

Dan

Momchil
Telerik team
 answered on 02 Jan 2024
2 answers
359 views

Hello.

I need you help please. I make report by Telerik Report Designer. i can make report is normal table but i need merge cell multiple column follow "Case_Problem.png". i need result follow "Nedd_Result.png".

I have Report.trdx in Report.zip, inside report have mock data source.

Siriwat
Top achievements
Rank 1
Iron
 answered on 27 Dec 2023
1 answer
107 views

Hello, I'm using Telerik Reporting R3 2023 to produce reports in PDF format. I use the stand alone report designer to design the report definition and our application uses Telerik Reporting to generate the report. I have a text box with a "Toggle Visibility" Action that works correctly when I preview the report in the stand alone report designer. When I click the "+" button, it toggles the visibility of another text box:

 

However, when I use our application to generate the report to a PDF or HTML5 format, the "+" button isn't there:

 

 

Any help is appreciated

Todor
Telerik team
 answered on 26 Dec 2023
1 answer
244 views

Currently, we use SSRS in our ASP.NET MVC apps to automatically generate tabular, in-memory reports based on RDLC templates against SQL Server data. The PDF produced by SSRS are downloaded to the user's browser. We don't provide any report viewer components on the page. How do you do this using Telerik Reporting?

Also, do you have beginner training videos for Telerik Reporting?

Thank you.

Dimitar
Telerik team
 answered on 26 Dec 2023
1 answer
210 views
How to bind the data in object value in array table group footer in telerik report designer
Momchil
Telerik team
 answered on 21 Dec 2023
0 answers
96 views

Hi All,

I want to pass few additional parameters from the report designer to the report service each and every request.

Following is my current code.

<script type="text/javascript">
        $(document).ready(function () {

            // For a complete overview over all the options used to initialize Web Report Designer, check:
            // https://docs.telerik.com/reporting/designing-reports/report-designer-tools/web-report-designer/web-report-designer-initialization
        $("#webReportDesigner").telerik_WebReportDesigner({
                toolboxArea: {
                    layout: "list" //Change to "grid" to display the contents of the Components area in a flow grid layout.
            },

            blpermision: {
                isJson: 'Nom'
            },

                serviceUrl: "@(basePath)reportdesigner/",
                report: "",
                skipOnboarding: true,

                // Example of passing parameters to the embedded Report Viewer used when previewing documents.
                // The example below demonstrates the currently available options.
                // reportViewerOptions: {
                //    scaleMode: telerikReportViewer.ScaleModes.SPECIFIC,
                //    scale: 1.0,
                //    templateUrl: "https://bluelotus360.co/ReportsAPI/api/reportdesginer/resources/templates/telerikReportViewerTemplate.html/",
                //    viewMode: telerikReportViewer.ViewModes.INTERACTIVE,
                //    pageMode: telerikReportViewer.PageModes.CONTINUOUS_SCROLL
                //    // Further explanation about how these options effect the Report Viewer can be found at:
                //    // https://docs.telerik.com/reporting/embedding-reports/display-reports-in-applications/web-application/html5-report-viewer/api-reference/report-viewer-initialization
                // }
        }).data("telerik_WebDesigner");
        
        });
</script>

Is there a way to tap each and every request to designer services .

 

Additionally i cannot over ride certain actions in report designer services. cannot override  SaveResource endpoint. any idea ?

 


  [Route("api/reportdesigner")]
  public class ReportDesignerController : ReportDesignerControllerBase
  {
      public ReportDesignerController(IReportDesignerServiceConfiguration reportDesignerServiceConfiguration, IReportServiceConfiguration reportServiceConfiguration)
          : base(reportDesignerServiceConfiguration, reportServiceConfiguration)
      {
          var m = reportDesignerServiceConfiguration;
       //  m.DefinitionStorage = new FileDefinitionStorage("~/CSR/");


      }


      public override IActionResult CreateDocument(string clientID, string instanceID, [FromBody] CreateDocumentArgs args)
      {
          return base.CreateDocument(clientID, instanceID, args);
      }

      [HttpPost("definitionresources/save")]
  
      public override Task<IActionResult> SaveResource([FromQuery] SaveResourceModel model)
      {
          return base.SaveResource(model);
      }


  }

BL360
Top achievements
Rank 1
 asked on 07 Dec 2023
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?