-
Notifications
You must be signed in to change notification settings - Fork 3
/
Customizing the Designer.html
51 lines (46 loc) · 1.7 KB
/
Customizing the Designer.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Customizing the Designer</title>
<!-- Stimulsoft Reports.JS -->
<script src="../scripts/stimulsoft.reports.js" type="text/javascript"></script>
<script src="../scripts/stimulsoft.viewer.js" type="text/javascript"></script>
<script src="../scripts/stimulsoft.designer.js" type="text/javascript"></script>
<script src="../scripts/stimulsoft.blockly.editor.js" type="text/javascript"></script>
<!-- Report designer scripts, may be external -->
<script type="text/javascript">
// Change report designer options
var options = new Stimulsoft.Designer.StiDesignerOptions();
options.appearance.theme = Stimulsoft.Designer.StiDesignerTheme.Office2022LightGrayTeal;
options.appearance.fullScreenMode = true;
options.toolbar.showPreviewButton = false;
options.toolbar.showFileMenu = false;
options.components.showImage = false;
options.components.showShape = false;
options.components.showPanel = false;
options.components.showCheckBox = false;
options.components.showSubReport = false;
var designer = new Stimulsoft.Designer.StiDesigner(options, "StiDesigner", false);
// Create a new report instance
var report = new Stimulsoft.Report.StiReport();
// Load report from url
report.loadFile("../reports/SimpleList.mrt");
// Edit report template in the designer
designer.report = report;
</script>
</head>
<body>
Customizing the Designer
<br><br>
<table>
<tr>
<td width="200px">Some page content</td>
<td><script type="text/javascript">
// Show the report designer in this place
designer.renderHtml();
</script></td>
</tr>
</table>
</body>
</html>