Сохранил в файл
Хочу открыть просомтр и падает на ошибке
Uncaught TypeError: Cannot read property 'sti_is' of null
at i (stimulsoft.viewer.js:10)
at p (stimulsoft.viewer.js:10)
at StiJsViewer.jsObject.postAjax (stimulsoft.viewer.js:10)
at StiJsViewer.postAction (stimulsoft.viewer.js:8)
at stimulsoft.viewer.js:10
Почему ошибка и откуда она возникает.
Мой шаблон
Код: Выделить всё
testReport: {
"ReportVersion": "2019.2.2",
"ReportGuid": "4f0121929ed2d3f20275f2537cfcfcb9",
"ReportName": "Report",
"ReportAlias": "Report",
"ReportFile": "Report.mrt",
"ReportCreated": "/Date(1554713817000+0200)/",
"ReportChanged": "/Date(1554713817000+0200)/",
"EngineVersion": "EngineV2",
"CalculationMode": "Interpretation",
"ReportUnit": "Centimeters",
"PreviewSettings": 268435455,
"Dictionary": {
"DataSources": {
"0": {
"Ident": "StiDataTableSource",
"Name": "root",
"Alias": "root",
"Columns": {
"0": {
"Name": "userId",
"Index": -1,
"NameInSource": "userId",
"Alias": "userId",
"Type": "System.Decimal"
},
"1": {
"Name": "id",
"Index": -1,
"NameInSource": "id",
"Alias": "id",
"Type": "System.Decimal"
},
"2": {
"Name": "title",
"Index": -1,
"NameInSource": "title",
"Alias": "title",
"Type": "System.String"
},
"3": {
"Name": "body",
"Index": -1,
"NameInSource": "body",
"Alias": "body",
"Type": "System.String"
}
},
"NameInSource": "sguk.root"
}
}
},
"Pages": {
"0": {
"Ident": "StiPage",
"Name": "Page1",
"Guid": "6bdb6030ef56b7f22a956decd9aa44c0",
"Interaction": {
"Ident": "StiInteraction"
},
"Border": ";;2;;;;;solid:Black",
"Brush": "solid:Transparent",
"Components": {
"0": {
"Ident": "StiText",
"Name": "Text1",
"Guid": "0d642e054e5b3ad6d4ec3e8658035398",
"ClientRectangle": "5.4,2.2,3,0.6",
"Interaction": {
"Ident": "StiInteraction"
},
"Text": {
"Value": "{root.id}"
},
"Border": ";;;;;;;solid:Black",
"Brush": "solid:Transparent",
"TextBrush": "solid:Black"
},
"1": {
"Ident": "StiText",
"Name": "Text2",
"Guid": "16da25d8fd52aeb01a9f4a12b6a80b81",
"ClientRectangle": "7.2,4.4,3,0.6",
"Interaction": {
"Ident": "StiInteraction"
},
"Text": {
"Value": "{root.body}"
},
"Border": ";;;;;;;solid:Black",
"Brush": "solid:Transparent",
"TextBrush": "solid:Black"
}
},
"PageWidth": 21.01,
"PageHeight": 29.69,
"Watermark": {
"TextBrush": "solid:50,0,0,0"
},
"Margins": {
"Left": 1,
"Right": 1,
"Top": 1,
"Bottom": 1
}
}
}
},
Код: Выделить всё
report.loadDocument(report)
Код: Выделить всё
repoirt.Load(report)