Hi,
I want to find out number of columns and gutter of active page in Indesign CC.
Following code is working in CS6.
IColumns* iColumns = Utils<ILayoutUIUtils>()->QueryFrontColumns();
int32 noClmns = iColumns->GetNumberColumns();
PMReal gutter = iColumns->GetGutter();
For Indesign CC, I used "ILayoutUtils" interface
IColumns* iColumns = Utils<ILayoutUtils>()->Query_Columns(0,0);
if(iColumn == nil)
break;
int32 noClmns = iColumns->GetNumberColumns_();
PMReal gutter = iColumns->GetGutter_();
Interface pointer "iColumns" is not nil but Indesign crashes while GetNumberColumn_() .
Is the above API correct or is there another function to do the same.
If anyone has done this please do let me know.
Thank you all in advance.
Priyanka