In This Topic
The WebDesigner Custom Store sample demonstrates the use of custom resources service for ActiveReports WebDesigner with an ASP.NET Core back end. This sample contains two different implementations which is based on
LiteDB
and
CosmosDB
. By default, LiteDB implementation is used. To be able to use CosmosDB, you should have an
Azure Cosmos DB
account. For more details regarding the method to use CosmosDB, please refer to the 'howto.md' file placed in the 'resources\CosmosDB' folder.
Note
: To run this sample, you must have
Visual Studio 2022
(version 17.0 or later)
.NET 6.0 SDK
.NET Core Hosting Bundle
(for deployment to IIS)
Sample Location
https://github.com/activereports/WebSamples18/tree/main/WebDesigner_CustomStore
Details
This sample implements the IResourcesService interface. If you are using any unmanaged resources, you should implement 'IDisposable' interface also. The project consists of the following elements.
Implementation Folder
This folder contains the following files and folders.
Storage
folder – This folder consists of CosmoDB.cs, ICustomStorage.cs, LiteDB.cs, etc. files to implement resources.
CustomDataSetTemplatesStore.cs
– It contains implementation for DataSets and DataSetTemplate.
ReportStore.cs, ResourceProvider.cs, Utils.cs
Resources Folder
This folder consists of a 'CosmosDB' folder and 'lite.db' file, which is a database file. CosmosDB folder includes information regarding how to use the CosmosDB in the project. This sample already contains all the necessary code for working with CosmosDB.
Program.cs
In this file, the implemented services are is registered.