-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (75 loc) · 3.26 KB
/
index.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>设计器</title>
<link href="styles.css" rel="stylesheet" />
</head>
<body>
<script src="./script/jquery-1.11.2.min.js" type="text/javascript"></script>
<script
src="./build/stimulsoft.reports.engine.src.js"
type="text/javascript"
></script>
<script
src="./build/stimulsoft.reports.export.src.js"
type="text/javascript"
></script>
<script src="./build/osp.viewer.src.js" type="text/javascript"></script>
<script src="./build/osp.designer.src.js" type="text/javascript"></script>
<!-- <script src="../build/osp.reports.engine.pack.js"></script>
<script src="../build/osp.reports.export.pack.js"></script>
<script src="../build/osp.viewer.pack.js" type="text/javascript"></script>
<script src="../build/osp.designer.pack.js" type="text/javascript"></script> -->
<script type="text/javascript">
window.$ = null; //测试时避免window对象干扰
Stimulsoft.Base.StiLicense.key =
"6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHkeCyu4tQ/fHMz14+aX8heK5fPWPOh9GhOJWHXzBWfWkku5KP" +
"ChSipMnMVPpqTvfJS7sIxjF/cxhVrUvULFfcxcaCxjU9i6mZsEDM7BO+haAK3b38ycQVY0MQLANLSx5MZDk64iZY3P" +
"Tch8l8h+G4eHK2bcztaqjQsdfficwLSgadjyB/6byFWPUQGIUZIicm7hdluCKxvRMJ9LksBxlgcJSnXQYm5RJxoibg" +
"yH5H5tzHyms+PF3ePcgpoXlcRotDn6IyefrvWPGiKKcia/HRIsoXRM8lDeOueiFgQ29UyMwGQ2In/3iwD9vdZ9ag1A" +
"wsjwO/i95q9QMe5Vl8qh7DaGaICQUN41fCgSX2UcS9wNzX8pu1/YUfQ0Nr3ZrE2GTnLDWiBBMGxCbmTmny0xJRMmIJ" +
"zSO0o//fqTfSKvGTZqquNLg4+YrXxUWDMos04Xka1BO4DkZVnN33tUwINu44cuzUrRVXe/BvmphpnEEskGGbmtT86z" +
"GSdRjirhJWqtsV4PaPlsFATWMafoe3/+EA1a";
var lang = "zh_CN";
Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile(
"./Localization/" + lang + ".xml",
false,
lang
);
Stimulsoft.Base.Localization.StiLocalization.cultureName = lang;
var report = new Stimulsoft.Report.StiReport();
var options = new Stimulsoft.Designer.StiDesignerOptions();
options.ospData = {
jQuery: window.jQuery,
beginLoadReport: function () {
console.log(12345);
},
};
options.height = "100%";
options.appearance.showReportTree = true;
options.appearance.showTooltips = true;
options.appearance.showTooltipsHelp = false;
options.appearance.allowChangeWindowTitle = true;
options.appearance.showPropertiesGrid = true;
options.appearance.showSaveDialog = false;
options.appearance.allowChangeWindowTitle = false;
options.appearance.showLocalization = false;
options.toolbar.showFileMenu = true;
options.toolbar.showSetupToolboxButton = true;
options.toolbar.showInsertButton = true;
options.toolbar.showLayoutButton = true;
options.toolbar.showFileMenuSaveAs = true;
options.toolbar.showFileMenuAbout = false;
options.toolbar.showFileMenuHelp = false;
options.bands.showTable = true;
options.components.showPanel = true;
var designer = new Stimulsoft.Designer.StiDesigner(options);
designer.onSaveReport = function (args) {
report = args.report;
showSaveModel();
};
designer.report = report;
</script>
</body>
</html>