CountIf(Products.ProductName, Products.CategoryID == 1)
.SumIf(Statistics.Population, Statistics.Country != "United Kingdom")
.<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Showing a Report in the Viewer</title>
<!-- Stimulsoft Reports.JS -->
{% load static %}
<script src="https://www.stimulsoft.com/{% static 'scripts/stimulsoft.reports.js' %}" type="text/javascript"></script>
<script src="https://www.stimulsoft.com/{% static 'scripts/stimulsoft.viewer.js' %}" type="text/javascript"></script>
<!-- Report viewer scripts, may be external -->
<script type="text/javascript">
// Create the report viewer with default options
var viewer = new Stimulsoft.Viewer.StiViewer(null, "StiViewer", false);
// Create a new report instance
var report = new Stimulsoft.Report.StiReport();
// Load report from url
report.loadFile("{% static 'reports/SimpleList.mrt' %}");
// Assign report to the viewer, the report will be built automatically after rendering the viewer
viewer.report = report;
</script>
</head>
<body>
<div>
<script type="text/javascript">
// Show the report viewer in this block
viewer.renderHtml();
</script>
</div>
</body>
</html>
def viewer(request):
return render(request, 'viewer.html')
urls.py:
urlpatterns = [
path("", views.home, name="home"),
path("viewer", views.viewer, name="viewer"),
]