I'm using Angular 10 for front-end and .net core webAPI with repository pattern for back-end. I'm trying to use DevExpress(v20.1) reports. But I couldn't figure it out how to make it. I'm searcing it for a week but no result. This page and this page explains it. but I couldn't figure out how to configure this part of code;
public class ReportDesignerController : Controller {
//...
public ActionResult GetReportDesignerModel(string reportUrl) {
string modelJsonScript =
new ReportDesignerClientSideModelGenerator(HttpContext.RequestServices)
.GetJsonModelScript(
reportUrl,
GetAvailableDataSources(), //this metod implemented
"DXXRD",
"DXXRDV",
"DXXQB"
);
return Content(modelJsonScript, "application/json");
}
}
can anyone tell me how to configure "DXXRD","DXXRDV","DXXRDV" correctly. I'm not using mvc so when I replace code with this;
new ReportDesignerClientSideModelGenerator()
.GetJsonModelScript(
reportUrl,
GetAvailableDataSources(),
"ReportDesigner/Invoke",
"WebDocumentViewer/Invoke",
"QueryBuilder/Invoke" .
);
I have to use MVC to be able to call these controllers and views. But I'm not using mvc. At the point where I am now, I started to think that I wouldn't be able to achieve this without MVC. So;
- Is it possible to use DevExpress Reporting in projects like my project?
- If yes how?