Unable to align formatted structure in excel

Posted by: anilkumar.pal on 9 April 2023, 10:39 pm EST

  • Posted 9 April 2023, 10:39 pm EST - Updated 9 April 2023, 10:46 pm EST

    Hi Team,

    I am new to this library and trying to utilize excel template capability of GcExcel.

    I have predefined template associated with datasource object. After generating report, values are coming correct but position is getting changed.

    Output:



    Expected Output:

    Template:

    Data structure: (Just dummy structure)

    datasource={

    BudgetYear:2024,

    Unit:{

    Name:“test”,

    Abbreviation:“test”

    },

    UnitItems:[

    {

    Name:“Test Item 1”,

    Field: [

    {

    Name:“Field1”,

    Title:“Field1”,

    Amount:585

    },

    {

    Name:“Field2”,

    Title:“Field2”,

    Amount:5845

    }

    ]

    }

    ],

    ProjectItems:[

    {

    Name:“Test Item 1”,

    Field: [

    {

    Name:“Field1”,

    Title:“Field1”,

    Amount:585

    },

    {

    Name:“Field2”,

    Title:“Field2”,

    Amount:5845

    }

    ]

    }

    ],

    UnitTotalItems:{

    Name:“SubTotal”,

    Amount:585

    },

    UnitTotalDiffItem:[{

    Name:“Diff1”,

    Amount:58%

    },{

    Name:“Diff2”,

    Amount:-8%

    }],

    ProjectTotalItems:{

    Name:“SubTotal”,

    Amount:585

    },

    ProjectTotalDiffItem:[{

    Name:“Diff1”,

    Amount:58%

    },{

    Name:“Diff2”,

    Amount:-8%

    }],

    GrandTotalItems:{

    Name:“Total”,

    Amount:585

    },

    GrandTotalDiffItem:[{

    Name:“Diff1”,

    Amount:58%

    },{

    Name:“Diff2”,

    Amount:-8%

    }],

    }

  • Posted 11 April 2023, 3:21 pm EST

    Hi Anil,

    Could you please provide the Template file, if possible? So, it will be easier to investigate and assist you accordingly. Otherwise, it will take some time.

    Regards,

    Nitin

  • Posted 11 April 2023, 4:44 pm EST

    Please find attached template and expected result.

    Template.zip

  • Posted 11 April 2023, 10:21 pm EST

    Hi Anil,

    Thanks for the Template. We have replicated this issue at our end. This seems like a bug. So, we have escalated it to the development team. Will get back to you once we have any update from them.[Internal Tracking Id - DOCXLS-7973]

    Best Regards,

    Nitin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels