Skip to main content
Inspiring
May 21, 2008
Question

[CS3] Resize table columns or rows

  • May 21, 2008
  • 1 reply
  • 262 views
Hi,<br /><br />I have a TableModel iTableModel and I'd like to resize row.<br /><br />I've tried :<br /><br />>InterfacePtr<ITableCommands> iTableCommands(iTableModel,UseDefaultIID());<br />>RowRange zeRowRange(0,1); // First row<br />>PMReal pmrealHeight(100.0);<br />>ErrorCode errorCode = iTableCommands->ResizeRow(zeRowRange,pmrealHeight);<br /><br />I've checked (of course iTableCommand != nil) that errorCode == kSuccess but ... row is not resized.<br /><br />But when closing the document, InDesign tells it was modified...<br /><br />What's wrong ?<br /><br />Thx in advance,<br /><br />Jacques.
This topic has been closed for replies.

1 reply

Inspiring
May 26, 2008
I got it !

I dit the stuff thru ASB/CSB selection mechanism and my function returned a bool16 kTrue (i.e. 1) instead of ErrorCode kSuccess (0).

So the framework didn't 'apply' the transformation.

What's boring is that the compiler doesn't complain about returning bool16 instead of an ErroCode...

J.