Number format in the report template

Stimulsoft Reports.JS discussion
Post Reply
ivanov_av
Posts: 1
Joined: Mon Feb 19, 2024 7:50 am

Number format in the report template

Post by ivanov_av »

Hello,
I am creating report from the code
Can you help me with the number format?
What should I write in report template to set number for Integer format (without digits after dot)?

Report part of my template:

Code: Select all

{
    "Pages": {
        "0": {
            "Ident": "StiPage",
            "Components": {
                "0": {
                    "Ident": "StiHeaderBand",
                    "Components": {
                        "0": {
                            "Ident": "StiText",
                            "Text": {
                                "Value": "Document version"
                            }
                        }
                    }
                },
                "1": {
                    "Ident": "StiDataBand",
                    "Components": {
                        "4": {
                            "Ident": "StiText",
                            "Text": {
                                "Value": "7685"
                            },
                            "Format": "Number",

                        }
                    }
                }
            }
        }
    }
}
Thank you!
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Number format in the report template

Post by Lech Kulikowski »

Hello,

You can set the Decimal Digits option.

Thank you.
Attachments
Screenshot 2024-02-19 234548.png
Screenshot 2024-02-19 234548.png (68.06 KiB) Viewed 228 times
Post Reply