how to set page margins runtime javascript
how to set page margins runtime javascript
how to set page margins, data columns, column count at runtime?
-
- Posts: 6198
- Joined: Tue Mar 20, 2018 5:34 am
Re: how to set page margins runtime javascript
Hello,
Please check sample which create report from code:
https://www.stimulsoft.com/en/samples/j ... -from-code
Also, you can find all properties and methods:
https://admin.stimulsoft.com/documentat ... lsoft.html
Thank you.
Please check sample which create report from code:
https://www.stimulsoft.com/en/samples/j ... -from-code
Also, you can find all properties and methods:
https://admin.stimulsoft.com/documentat ... lsoft.html
Thank you.
Re: how to set page margins runtime javascript
Very Thanks it solved from this code
report.pages.getByIndex(0).margins = new Stimulsoft.Report.Components.StiMargins(1, 1, 0.3, 0);
also my report have Data (named LabelsDataBand) but i don't know how to set columns count, width and gaps at run time
below code all fail...
//report.pages.getByIndex(0).Components.LabelsDataBand.Columns = 3;
//report.pages.getByIndex(0).Components.getByIndex(0).LabelsDataBand.Columns = 3;
//report.pages.getByIndex(0).LabelsDataBand.Columns = 3;
thanks Lech Kulikowski ~~
report.pages.getByIndex(0).margins = new Stimulsoft.Report.Components.StiMargins(1, 1, 0.3, 0);
also my report have Data (named LabelsDataBand) but i don't know how to set columns count, width and gaps at run time
below code all fail...
//report.pages.getByIndex(0).Components.LabelsDataBand.Columns = 3;
//report.pages.getByIndex(0).Components.getByIndex(0).LabelsDataBand.Columns = 3;
//report.pages.getByIndex(0).LabelsDataBand.Columns = 3;
thanks Lech Kulikowski ~~
Re: how to set page margins runtime javascript
it solved by code below
report.pages.getByName("PageSpongeSpa").components.getByName("DataBandSpongeSpa").columns = 3;
thanks... have nice day~~
report.pages.getByName("PageSpongeSpa").components.getByName("DataBandSpongeSpa").columns = 3;
thanks... have nice day~~
-
- Posts: 6198
- Joined: Tue Mar 20, 2018 5:34 am
Re: how to set page margins runtime javascript
Hello
We are always glad to help you!
Please let us know if you need any additional help.
Thank you.
We are always glad to help you!
Please let us know if you need any additional help.
Thank you.