Quantcast
Channel: Adobe Community : Popular Discussions - InDesign SDK
Viewing all articles
Browse latest Browse all 78596

How to find number of columns in Indesign CC

$
0
0

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


Viewing all articles
Browse latest Browse all 78596


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>