Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
patrik_seger
Partner - Creator
Partner - Creator

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

0 Replies