Code: Select all
report.GetComponentByName('VerticalLinePrimitive14').Left = 7.2;
report.GetComponentByName is not a function
Code: Select all
report.GetComponentByName('VerticalLinePrimitive14').Left = 7.2;
report.GetComponentByName is not a function
Code: Select all
var vertLine = report.getComponentByName('Line1');
vertLine.left = 0;
Code: Select all
var report = new Stimulsoft.Report.StiReport();
report.loadFile('reports/lfc.mrt');
var vertLine = report.getComponentByName('VerticalLinePrimitive10');
console.log(vertLine.left);//initial value is 3,and it is displayed
vertLine.left = 4; //will change to 4
console.log(vertLine.left); //value is 4 in console but no change in view
this.viewer.report = report;
this.viewer.renderHtml('viewerContent');
...
Code: Select all
var vertLine1 = report.getComponentByName("VLine1");
vertLine1.getStartPoint(vertLine1.getContainer()).left = 0;
vertLine1.getEndPoint(vertLine1.getContainer()).left = 0;