[{"id":"5804522f-5bb6-45a5-a33c-e06bd6e903c3","tags":[{"product":null,"links":null,"id":"f182429a-ebd9-4613-b594-5e9760e18590","name":"Upd","color":"rgb(245, 168, 56)","productId":"3b9d5285-b2fc-4eaa-89ee-77cf9c41b869"}]},{"id":"da656615-fc6b-4112-8262-158724d89fbc","tags":[{"product":null,"links":null,"id":"f182429a-ebd9-4613-b594-5e9760e18590","name":"Upd","color":"rgb(245, 168, 56)","productId":"3b9d5285-b2fc-4eaa-89ee-77cf9c41b869"}]},{"id":"56f271b9-f08f-4e70-a518-1a7f9181a3d7","tags":[{"product":null,"links":null,"id":"c026ae17-6f87-496e-9a27-2d8a951d602a","name":"New","color":"red","productId":"3b9d5285-b2fc-4eaa-89ee-77cf9c41b869"}]},{"id":"55a5ae6a-24c5-468a-9530-d26f7c710ea6","tags":[{"product":null,"links":null,"id":"c026ae17-6f87-496e-9a27-2d8a951d602a","name":"New","color":"red","productId":"3b9d5285-b2fc-4eaa-89ee-77cf9c41b869"}]},{"id":"d3df6c0f-374d-4a05-a517-a0562edbbba0","tags":[{"product":null,"links":null,"id":"c026ae17-6f87-496e-9a27-2d8a951d602a","name":"New","color":"red","productId":"3b9d5285-b2fc-4eaa-89ee-77cf9c41b869"}]}]
Let us now look at the steps to configure the DsDataViewer in an ASP.NET Core Application.
Alternatively, you can manually copy the ***dsdataviewer ***files available in the DsExcel .NET | Java package to the wwwroot folder.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Document Solutions Data Viewer">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes" />
<title>Document Solutions Data Viewer Sample</title>
<script type="text/javascript" src="lib/node_modules/@mescius/dsdataviewer/dsdataviewer.js"></script>
<script>function loadDataViewer(selector) {
DsDataViewer.LicenseKey = 'your_license_key';
var viewer = new DsDataViewer(selector, {});
}
</script>
</head>
<body onload="loadDataViewer('#root')">
<div id="root" style="width:100%;height:100%"></div>
</body>
</html>
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
if (!app.Environment.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseDefaultFiles();
app.UseStaticFiles();
app.UseRouting();
app.Run();
Open document
button to load your favorite document. The viewer with a document appears as below: