The report or dashboard is not specified

Stimulsoft Reports.ANGULAR discussion
Post Reply
ippc
Posts: 2
Joined: Tue Apr 08, 2025 4:47 pm

The report or dashboard is not specified

Post by ippc »

I just started my trial period and am trying to get the angular viewer working. I believe I've followed what tutorials I could find properly. I do finally have a report rendering in the browser, but I can't print, or change zoom, etc., without getting an error that says, "The report or dashboard is not specified".

I'm on angular 17, .net core 8, and sql server.

Below is my html and C# code. What am I missing?

Also, is there a way to make the default initial zoom be page width?

Code: Select all

  <stimulsoft-viewer-angular
    [requestUrl]="'https://localhost:4200/api/reports/{action}'"
    [action]="'InitViewer'"
    [height]="'100%'">
  </stimulsoft-viewer-angular>

Code: Select all

[HttpPost]
[Route("InitViewer")]
public IActionResult InitViewer()
{
	var requestParams = StiAngularViewer.GetRequestParams(this);
	var options = new StiAngularViewerOptions();
	options.Actions.GetReport = "GetReport";
	options.Actions.ViewerEvent = "ViewerEvent";
	options.Appearance.ScrollbarsMode = true;
	return StiAngularViewer.ViewerDataResult(requestParams, options);
}

[HttpPost]
[Route("GetReport")]
[RequestTimeout(milliseconds: 90000)]
public IActionResult GetReport()
{
	var report = StiReport.CreateNewReport();
	StiOptions.Viewer.Windows.Zoom = 1;
	var path = StiAngularHelper.MapPath(this, $"Reports/TestList.mrt");
	report.Load(path);
	return StiAngularViewer.GetReportResult(this, report);
}

[HttpPost]
[Route("ViewerEvent")]
public IActionResult ViewerEvent()
{
	return StiAngularViewer.ViewerEventResult(this);
}
thank you
Max Shamanov
Posts: 975
Joined: Tue Sep 07, 2021 10:11 am

Re: The report or dashboard is not specified

Post by Max Shamanov »

Hello,

Please check our sample at the following link:
https://github.com/stimulsoft/Samples-D ... ET-Angular

Thank you.
ippc
Posts: 2
Joined: Tue Apr 08, 2025 4:47 pm

Re: The report or dashboard is not specified

Post by ippc »

I'm not able to find any difference in the code. is there anything else you can provide to help me troubleshoot this issue?

Is the 1st call to GetReport somehow setting an id and/or caching something?
Are the subsequent calls to ViewerEvent getting an id out of the "stiweb parameters" I see in the payload and then looking for something in the cache that it's not finding? Would that report that error I am seeing, or would that report a different error like 'report not found in cache' ?

Initially I thought the issue was that I was using ng serve to host the webapi from within VS 2022. I switched it to use IISExpress like your sample, but I still have the same issue.
Lech Kulikowski
Posts: 7259
Joined: Tue Mar 20, 2018 5:34 am

Re: The report or dashboard is not specified

Post by Lech Kulikowski »

Hello,

Most probably, the issue with caching. Please check the following article:
https://www.stimulsoft.com/en/documenta ... aching.htm

Thank you.
Post Reply