BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Query |
Response |
I am new to Syncfusion report and designer. I am trying to change the report framework in one of my project which is in ASP.NET Core MVC. I have a list of data that I use to get from entity framework code first. My class looks like below |
Yes, we can able to pass the local object model data for datasource in our ASP.NET Core ReportViewer application. Please find the below help documentation for how to use the local object model for datasource.
We have prepared a simple sample in ASP.NET Core ReportViewer for your reference and it can be downloaded from below location.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ReportSample_core728443247.zip
|
So I would like to use generated object of above class combination in syncfusion report. Is it possible to use? |
Could you please provide some additional details like how you are using our reporting control, whether you are using ReportViewer with ReportServer or without ReportServer at your end. It will be helpful for us to provide the solution at the earliest. |
Also I tried to use web api data source data generated using above class object. But it throws json format required error. I manually browsed the web api path and copied the json data to validate in third party tool like jsonlint and there it shows json data is valid.
Could you please help me on both of the scenario?
|
We were not able to find the exact root cause for this mentioned JSON data issue. So, could you please share your code snippet how you are specifying the data in web API. It is very useful to provide the solution earlier. |
Query |
Response | ||
I am using Report Server to design report (rdl) file and goal is to use that rdl file in ASP.NET Core application. In my ASP.NET Core application I already have methods that returns data as expected in PDF form. Now I want to replace those PDF by Syncfusion ReportViewer. I have attached screenshot to have idea how my expected output is.
|
Yes, we can able to pass the local object model values for RDL report when setting the processing mode as local as shown in below code example.
Index.cshtml:
HomeController.cs:
We have prepared the simple sample for your reference and it can be downloaded from below location.
| ||
Below is the API code I am using
[Route("api/[controller]")]
[ApiController]
public class ExamReportController : ControllerBase
{
[Route("GetMarksheet")]
[HttpGet]
public IActionResult GetMarksheet([FromQuery]int classId, [FromQuery]int sectionId, [FromQuery]int examId, [FromQuery]int schoolId, [FromQuery]int sessionId)
{
var modelList = new List();
//my code to generate data and assign to modelList goes here
var finalModel = modelList.OrderBy(x => x.RollNo).ToList();
var datas = JsonConvert.SerializeObject(finalModel);
return Ok(datas);
}
}
|
Based on your code snippet the Json data has been returned properly. So, it possible for you to modify the above sample to reproduce the issue at our end. |