AspNetCore.ReportViewer
2.0.3.5
See the version list below for details.
dotnet add package AspNetCore.ReportViewer --version 2.0.3.5
NuGet\Install-Package AspNetCore.ReportViewer -Version 2.0.3.5
<PackageReference Include="AspNetCore.ReportViewer" Version="2.0.3.5" />
paket add AspNetCore.ReportViewer --version 2.0.3.5
#r "nuget: AspNetCore.ReportViewer, 2.0.3.5"
// Install AspNetCore.ReportViewer as a Cake Addin #addin nuget:?package=AspNetCore.ReportViewer&version=2.0.3.5 // Install AspNetCore.ReportViewer as a Cake Tool #tool nuget:?package=AspNetCore.ReportViewer&version=2.0.3.5
Microsoft.AspNetCore.Report, ReportViewer, ReportService
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Standard | netstandard1.6.1 is compatible. |
-
.NETStandard 1.6.1
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 9.0.1)
- System.ServiceModel.Duplex (>= 4.3.0)
- System.ServiceModel.Http (>= 4.3.0)
- System.ServiceModel.NetTcp (>= 4.3.0)
- System.ServiceModel.Primitives (>= 4.3.0)
- System.ServiceModel.Security (>= 4.3.0)
- System.Xml.XmlSerializer (>= 4.3.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on AspNetCore.ReportViewer:
Package | Downloads |
---|---|
Win.Framework
Package Description |
|
HESRAM.Print
Package Description |
|
WinFramework
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.0.200103 | 58,121 | 1/2/2020 |
2.0.3.58 | 23,024 | 5/14/2018 |
2.0.3.38 | 1,986 | 4/5/2018 |
2.0.3.5 | 2,189 | 1/31/2018 |
Microsoft.AspNetCore.Report, ReportViewer, ReportService
var settings = new ReportSettings();
var appsettins = HttpHelper.AppSettings;
settings.ReportServer = appsettins.ReportServer;
settings.Credential = new NetworkCredential(appsettins.ReportUserName, appsettins.ReportPassword, appsettins.ReportDomain);
settings.UserAgent = (HttpHelper.HttpContext.Request.Headers as FrameRequestHeaders).HeaderUserAgent;
if (request.ExecuteType != ReportExecuteType.Export)
{
request.RenderType = ReportRenderType.Html4_0;
}
settings.ShowToolBar = true;
settings = PrepareParamenters(settings);
var viewer = new ReportViewer(settings);
var response = viewer.Execute(request);
if (request.ExecuteType == ReportExecuteType.Export)
{
start = request.Parameters.FirstOrDefault(x => x.Key.Equals("startDate", tringComparison.OrdinalIgnoreCase)).ConvertTo<DateTime>();
end = request.Parameters.FirstOrDefault(x => x.Key.Equals("endDate", tringComparison.OrdinalIgnoreCase)).ConvertTo<DateTime>();
var name = request.GetName();
response.Data.FileName = $"{name}_{start.ToString("MMddyyyy")}-{end.ToString("MMddyyyy")}.{response.Data.Extension}";
}
the javascript ReportViewer.js,ToolBar.css at this package's content folder
<div id = "toolBar" >
</ div >
< div id= "viewer" >
</ div >
< script >
var viewer = .reportViewer({
toolBar: '#toolBar', // can set null that toolbar will in div#viewer
server: "/Reports/LoadReport",
request:
{
path: "/ScheduleReports/OvertimeReport"
},
//onError: function (message) { alert(message); },
//onLoading: function () { },
onLoaded: function(response, data) {
if (.length == 0) {
.append('<button type="button" class="close" title="Close" style="font-size:50px;width:50px;color:#333;" onclick="exitFullscreen();"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>');
}
}
});
viewer.loadReport();
</script>