Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Controllers/ExternalReportServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ public override System.IO.Stream GetReport()

private Stream ReadFiles(string filePath)
{
#pragma warning disable SCS0018
using (FileStream fileStream = File.OpenRead(filePath))
#pragma warning restore SCS0018
{
fileStream.Position = 0;
MemoryStream memStream = new MemoryStream();
Expand All @@ -234,7 +236,10 @@ public override bool EditReport(byte[] reportdata)
string catagoryName = reportPath.Substring(0, reportPath.IndexOf('/') > 0 ? reportPath.IndexOf('/') : 0).Trim();
string targetFolder = Path.Combine(this.basePath, "resources", "Report");
string reportPat = Path.Combine(targetFolder, catagoryName, reportName);
#pragma warning disable SCS0018
File.WriteAllBytes(reportPat, reportdata.ToArray());
#pragma warning restore SCS0018

return true;
}

Expand Down Expand Up @@ -298,7 +303,9 @@ T DeseralizeObj<T>(Stream str)
{
XmlSerializer serializer = new XmlSerializer(typeof(T));
XmlReader reader = XmlReader.Create(str);
#pragma warning disable SCS0028
return (T)serializer.Deserialize(reader);
#pragma warning restore SCS0028
}

private Stream GetFileToStream(byte[] _fileContent)
Expand Down
16 changes: 16 additions & 0 deletions Controllers/ReportDesignerWebApiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public object GetImage(string key, string image)
return ReportDesignerHelper.GetImage(key, image, this);
}

#pragma warning disable SCS0016
[HttpPost]
public bool DisposeObjects()
{
Expand Down Expand Up @@ -96,7 +97,9 @@ public bool DisposeObjects()

if (files.Length == 0 || (files.Length == fileCount))
{
#pragma warning disable SCS0018
Directory.Delete(dirs[index], true);
#pragma warning restore SCS0018
}
}
}
Expand All @@ -108,6 +111,7 @@ public bool DisposeObjects()
}
return false;
}
#pragma warning restore SCS0016


[ActionName("GetResource")]
Expand Down Expand Up @@ -146,17 +150,21 @@ public object PostDesignerAction([FromBody] Dictionary<string, object> jsonResul
return ReportDesignerHelper.ProcessDesigner(jsonResult, this, null, this._cache);
}

#pragma warning disable SCS0016
[HttpPost]
public object PostFormDesignerAction()
{
return ReportDesignerHelper.ProcessDesigner(null, this, null, this._cache);
}
#pragma warning restore SCS0016

#pragma warning disable SCS0016
[HttpPost]
public object PostFormReportAction()
{
return ReportHelper.ProcessReport(null, this, this._cache);
}
#pragma warning restore SCS0016

[HttpPost]
public object PostReportAction([FromBody] Dictionary<string, object> jsonResult)
Expand All @@ -165,11 +173,13 @@ public object PostReportAction([FromBody] Dictionary<string, object> jsonResult)
return ReportHelper.ProcessReport(jsonResult, this, this._cache);
}

#pragma warning disable SCS0016
[HttpPost]
public void UploadReportAction()
{
ReportDesignerHelper.ProcessDesigner(null, this, this.Request.Form.Files[0], this._cache);
}
#pragma warning restore SCS0016

private string GetFilePath(string itemName, string key)
{
Expand Down Expand Up @@ -207,9 +217,13 @@ public bool SetData(string key, string itemId, ItemInfo itemData, out string err

if (System.IO.File.Exists(writePath))
{
#pragma warning disable SCS0018
System.IO.File.Delete(writePath);
#pragma warning restore SCS0018
}
#pragma warning disable SCS0018
System.IO.File.WriteAllBytes(writePath, bytes);
#pragma warning restore SCS0018
stream.Close();
stream.Dispose();
}
Expand All @@ -232,7 +246,9 @@ public ResourceInfo GetData(string key, string itemId)
var filePath = this.GetFilePath(itemId, key);
if (itemId.Equals(Path.GetFileName(filePath), StringComparison.InvariantCultureIgnoreCase) && System.IO.File.Exists(filePath))
{
#pragma warning disable SCS0018
resource.Data = System.IO.File.ReadAllBytes(filePath);
#pragma warning restore SCS0018
LogExtension.LogInfo(string.Format("Method Name: {0}; Class Name: {1}; Message: {2};", "GetData", "CacheHelper", string.Format("File data retrieved from the path: {0}", filePath)), null);
}
else
Expand Down
19 changes: 19 additions & 0 deletions Controllers/ReportViewer/NdaReportController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace ReportsCoreSamples.Controllers
{
[Route("report-viewer/nda-report")]
public class NdaReportController : PreviewController
{
[HttpGet("")]
public IActionResult Index()
{
this.updateMetaData();
return View();
}
}
}
2 changes: 2 additions & 0 deletions Controllers/ReportViewerWebApiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,13 @@ public object GetResource(ReportResource resource)
return ReportHelper.GetResource(resource, this, this._cache);
}

#pragma warning disable SCS0016
[HttpPost]
public object PostFormReportAction()
{
return ReportHelper.ProcessReport(null, this, _cache);
}
#pragma warning restore SCS0016
public void LogError(string message, Exception exception, MethodBase methodType, ErrorType errorType)
{
LogExtension.LogError(message, exception, methodType, errorType == ErrorType.Error ? "Error" : "Info");
Expand Down
2 changes: 2 additions & 0 deletions Controllers/ReportWriterController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public ActionResult Index()
return View();
}

#pragma warning disable SCS0016
[HttpPost("generate")]
public IActionResult Generate(string reportName, string type)
{
Expand Down Expand Up @@ -138,6 +139,7 @@ public IActionResult Generate(string reportName, string type)
}

}
#pragma warning restore SCS0016
}

public class customBrowsertype : ExportSettings
Expand Down
Binary file removed Nuget/BoldReports.Base.Logger.12.1.12.nupkg
Binary file not shown.
Binary file added Nuget/BoldReports.Base.Logger.13.1.26.nupkg
Binary file not shown.
78 changes: 37 additions & 41 deletions ReportsCoreSamples.csproj
Original file line number Diff line number Diff line change
@@ -1,54 +1,50 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
<CopyRazorGenerateFilesToPublishDirectory>true</CopyRazorGenerateFilesToPublishDirectory>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<AspNetCoreModuleName>AspNetCoreModuleV2</AspNetCoreModuleName>
<AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
<CopyRazorGenerateFilesToPublishDirectory>true</CopyRazorGenerateFilesToPublishDirectory>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<AspNetCoreModuleName>AspNetCoreModuleV2</AspNetCoreModuleName>
<AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
<PlatformTarget>x64</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
<PackageReference Include="Microsoft.AspNetCore.JsonPatch" Version="8.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.10" />
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.3" />
<PackageReference Include="System.Net.Http.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.12.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.12.0" />
</ItemGroup>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
<PackageReference Include="Microsoft.AspNetCore.JsonPatch" Version="8.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.10" />
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.3" />
<PackageReference Include="System.Net.Http.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.12.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.14.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Bold.Licensing" Version="12.1.12" />
<PackageReference Include="BoldReports.AspNet.Core" Version="12.1.12" />
<PackageReference Include="BoldReports.CRI.Barcode" Version="12.1.12" />
<PackageReference Include="BoldReports.CRI.Signature" Version="12.1.12" />
<PackageReference Include="BoldReports.CRI.Shape" Version="12.1.12" />
<PackageReference Include="BoldReports.CRI.Html" Version="12.1.12">
<ExcludeAssets>native</ExcludeAssets>
<PackageReference Include="Bold.Licensing" Version="13.1.26" />
<PackageReference Include="BoldReports.AspNet.Core" Version="13.1.26" />
<PackageReference Include="BoldReports.CRI.Barcode" Version="13.1.26" />
<PackageReference Include="BoldReports.CRI.Signature" Version="13.1.26" />
<PackageReference Include="BoldReports.CRI.Shape" Version="13.1.26" />
<PackageReference Include="BoldReports.CRI.Html" Version="13.1.26">
<IncludeAssets>compile;runtime</IncludeAssets>
</PackageReference>
<PackageReference Include="BoldReports.CRI.Pdf" Version="12.1.12" />
<PackageReference Include="BoldReports.Net.Core" Version="12.1.12" />
<PackageReference Include="BoldReports.Data.WebData" Version="12.1.12" />
<PackageReference Include="BoldReports.Data.Csv" Version="12.1.12" />
<PackageReference Include="BoldReports.Data.Excel" Version="12.1.12" />
<PackageReference Include="BoldReports.Data.ElasticSearch" Version="12.1.12" />
<PackageReference Include="BoldReports.Data.SSAS" Version="12.1.12" />
<PackageReference Include="BoldReports.CRI.Pdf" Version="13.1.26" />
<PackageReference Include="BoldReports.Net.Core" Version="13.1.26" />
<PackageReference Include="BoldReports.Data.WebData" Version="13.1.26" />
<PackageReference Include="BoldReports.Data.Csv" Version="13.1.26" />
<PackageReference Include="BoldReports.Data.Excel" Version="13.1.26" />
<PackageReference Include="BoldReports.Data.ElasticSearch" Version="13.1.26" />
<PackageReference Include="BoldReports.Data.SSAS" Version="13.1.26" />
<PackageReference Include="BoldReports.Data.AWSSecretsManager" Version="13.1.26" />
<PackageReference Include="BuildBundlerMinifier" Version="3.2.449" />
<PackageReference Include="log4net" Version="2.0.15" />
<PackageReference Include="PuppeteerSharp" Version="5.0.0" />
<PackageReference Include="SecurityCodeScan.VS2019" Version="5.6.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="8.0.0" />
</PackageReference>
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="9.0.11" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="BoldReports.Data.MySQL" Version="12.1.12" />
<PackageReference Include="BoldReports.Data.Oracle" Version="12.1.12" />
<PackageReference Include="BoldReports.Data.PostgreSQL" Version="12.1.12" />
<PackageReference Include="BoldReports.Data.Snowflake" Version="12.1.12" />
<PackageReference Include="BoldReports.Data.GoogleBigQuery" Version="12.1.12" />
<PackageReference Include="BoldReports.Data.MongoDB" Version="12.1.12" />
</ItemGroup>
<ItemGroup>
<None Include="Controllers\**" CopyToOutputDirectory="Always" />
Expand All @@ -59,4 +55,4 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
</Project>
2 changes: 2 additions & 0 deletions Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public Startup(IConfiguration configuration, IWebHostEnvironment _hostingEnviron
{
log4net.GlobalContext.Properties["LogPath"] = _hostingEnvironment.ContentRootPath;
LogExtension.RegisterLog4NetConfig();
#pragma warning disable SCS0018
string License = File.ReadAllText(System.IO.Path.Combine(_hostingEnvironment.ContentRootPath, "BoldLicense.txt"), Encoding.UTF8);
#pragma warning restore SCS0018
BoldLicenseProvider.RegisterLicense(License, bool.Parse(configuration.GetSection("appSettings").GetSection("IsOfflineLicense").Value), bool.Parse(configuration.GetSection("appSettings").GetSection("EnableLicenseLog").Value));
ReportConfig.DefaultSettings = new ReportSettings()
{
Expand Down
24 changes: 24 additions & 0 deletions Views/NdaReport/Index.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@inject Globals globals;

@section control {

<bold-report-viewer id="reportviewer" report-service-url="@Globals.SERVICE_URL" report-path="nda-report.rdl" toolbar-rendering="onToolbarRendering" tool-bar-item-click="onToolBarItemClick" export-item-click="onExportItemClick" />

}

@section description {
<div id="description">
<p>The report demonstrates the PDF digital signature functionality in a Non-Disclosure Agreement (NDA) document. It
highlights secure signing and verification features for professional agreements.</p>
<ul>
<li>Illustrates PDF digital signature integration within reports.</li>
<li>Uses a real-world NDA template for practical demonstration.</li>
<li>Shows how signatures, names, dates, and locations are captured in the report item.</li>
</ul>
<p>
More information about the PDF signature report item can be found in this <a
href="https://help.boldreports.com/enterprise-reporting/designer-guide/report-designer/report-items/signature/design-report-with-pdf-signature/"
target="_blank" rel="noreferrer">documentation</a> section.
</p>
</div>
}
4 changes: 2 additions & 2 deletions appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
},
"AllowedHosts": "*",
"appSettings": {
"ExtAssemblies": "BoldReports.Data.WebData;BoldReports.Data.Csv;BoldReports.Data.Excel;BoldReports.Data.SSAS;BoldReports.CRI.Barcode;BoldReports.Data.ElasticSearch;BoldReports.CRI.Signature;BoldReports.CRI.Shape;BoldReports.CRI.Html;BoldReports.CRI.Pdf;BoldReports.Data.MySQL;BoldReports.Data.Oracle;BoldReports.Data.PostgreSQL;BoldReports.Data.Snowflake;BoldReports.Data.GoogleBigQuery;BoldReports.Data.MongoDB;",
"ExtAssemblies": "BoldReports.Data.WebData;BoldReports.Data.Csv;BoldReports.Data.Excel;BoldReports.Data.SSAS;BoldReports.CRI.Barcode;BoldReports.Data.ElasticSearch;BoldReports.Data.AWSSecretsManager;BoldReports.CRI.Signature;BoldReports.CRI.Shape;BoldReports.CRI.Html;BoldReports.CRI.Pdf;",
"IsOfflineLicense": "true",
"EnableLicenseLog": "true"
},
"copyrightInfo": "Copyright © 2001 - 2025 Syncfusion Inc.",
"copyrightInfo": "Copyright © 2001 - 2026 Syncfusion Inc.",
"externalURLs": {
"tryItFree": "https://app.boldid.net/register/reports/enterprise?evaluation=v2&leadsource=demos.boldreports.com&gclid=&referrerroriginurl=https://demos.boldreports.com/pricing&secondaryreferraloriginurl=https://demos.boldreports.com/&host=server&quantity=1",
"productDetailViewer": "https://www.boldreports.com/embedded-reporting/aspnet-core-report-viewer",
Expand Down
13 changes: 13 additions & 0 deletions bundleconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
"wwwroot/scripts/bold-reports/v2.0/common/bold.reports.common.min.js",
"wwwroot/scripts/bold-reports/v2.0/common/bold.reports.widgets.min.js",
"wwwroot/scripts/bold-reports/v2.0/bold.report-viewer.min.js",
"wwwroot/scripts/extensions/barcode.reportitem.js",
"wwwroot/scripts/extensions/qrbarcode.reportitem.js",
"wwwroot/scripts/extensions/signature.reportitem.js",
"wwwroot/scripts/extensions/signature.dialog.js",
"wwwroot/scripts/extensions/pdf.signature.reportitem.js",
"wwwroot/scripts/extensions/shape.reportitem.js",
"wwwroot/scripts/extensions/pdfdocument.reportitem.js",
"wwwroot/scripts/bold-reports/v2.0/localization/l10n/ej.localetexts.en-US.min.js",
"wwwroot/scripts/bold-reports/v2.0/localization/l10n/ej.localetexts.fr-CA.min.js",
"wwwroot/scripts/bold-reports/v2.0/localization/l10n/ej.localetexts.de-DE.min.js",
Expand Down Expand Up @@ -52,6 +59,12 @@
"wwwroot/css/common/main-content.css",
"wwwroot/css/common/sidebar.css",
"wwwroot/css/common/index.css",
"wwwroot/extensions/barcode.reportitem.css",
"wwwroot/extensions/signature.reportitem.css",
"wwwroot/extensions/signature.dialog.css",
"wwwroot/extensions/pdf.signature.reportitem.css",
"wwwroot/extensions/shape.reportitem.css",
"wwwroot/extensions/document.reportitem.css",
"wwwroot/css/bold-reports/v2.0/tailwind-light/bold.report-viewer.min.css",
"wwwroot/css/bold-reports/v2.0/tailwind-light/bold.report-designer.min.css"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aspnet-core-samples",
"version": "12.1.12",
"version": "13.1.26",
"author": "Syncfusion",
"license": "Syncfusion",
"scripts": {
Expand Down
Binary file modified wwwroot/assets/sidebar/portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@charset "UTF-8";
/*!
* filename: bold.report-designer.min.css
* version : 12.1.12
* Copyright C 2001 - 2025 Syncfusion Inc. All rights reserved.
* version : 13.1.26
* Copyright C 2001 - 2026 Syncfusion Inc. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@charset "UTF-8";
/*!
* filename: bold.report-designer.min.css
* version : 12.1.12
* Copyright C 2001 - 2025 Syncfusion Inc. All rights reserved.
* version : 13.1.26
* Copyright C 2001 - 2026 Syncfusion Inc. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
Expand Down

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions wwwroot/css/bold-reports/v2.0/common-images/folder-search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading