show report on mvc Core with sql server data

Stimulsoft Reports.NET discussion
Post Reply
sunn789
Posts: 1
Joined: Fri Aug 12, 2011 9:52 am

show report on mvc Core with sql server data

Post by sunn789 »

Hi.
I design report on stimul 2015 and get data from Sp of SQL server .it work fine in stimulsoft ,
in my MVC core project i add component from nuget (the same as manual in main site) i move report from desctop to wwwroot of my project , in create controller and view the same as manual,
https://www.stimulsoft.com/en/documenta ... viewer.htm
when i run project show report viewer and an error as popup "Error Pars", without description ,
my question is,
After transfer report from my folder to project is need to change sql connection in report or need to set sql connection to controller . whenever sql connetion set on appsetting.json
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: show report on mvc Core with sql server data

Post by Alex K. »

Hello,

1. We couldn't reproduce this bug. Please check our samples:
https://github.com/stimulsoft/Samples-NET.Core-CSharp

2. Please check the following samples in which shows how to connect data:
https://github.com/stimulsoft/Samples-N ... in-Reports

You can change connection string, which storages in the report in the GetReportData event:

Code: Select all

StiRequestParams requestParams = StiNetCoreViewer.GetRequestParams(this);
requestParams.Connection.ConnectionString = "correct string";
return StiNetCoreViewer.GetReportDataResult(this, requestParams);
Thank you.
Post Reply