Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

patrik_seger
Contributor

Can not use SetBounds to set to object to full size

I use the SetBounds method to set the size of Table, but it does not work as I would like to.

I have a Table placed at 4,0 and of size 20 x 12 and after

using (sheet.SuspendedLayout) {

            ITable table = sheet.ISheet.CreateTable(properties: properties);

            sheetCell = sheet.ISheet.CellFor(table);

            sheetCell.SetBounds(4, 0, 20, 12);

}

the position is set to 4,0 but the size is set to only about 11 x 12. I can though manually change the size in Sense Desktop to 20 x 12.

If I instead try to set the size to 19 x 12, the it succeeds to set the size to 19 x 12.

using (sheet.SuspendedLayout) {

            ITable table = sheet.ISheet.CreateTable(properties: properties);

            sheetCell = sheet.ISheet.CellFor(table);

            sheetCell.SetBounds(4, 0, 19, 12);

}

Is there something I'm missing out here?

I'm using Sense 3.0.

Br Patrik

Community Browser