How to get the report &quot;Layout preference&quot; with engine APIhttps://www.eclipse.org/forums/index.php/mv/msg/452486/1006821/#msg_1006821
I would need to check with the report engine API if a report has been set to "auto" or "fixed" (layout preference property).

However this way is deprecated and returns null, it is said here we must use a moduleHandle instead:

reportDesign.getDesignHandle().getModuleHandle().*

This moduleHandle has tons of methods, but not a "getLayoutPreference()" .

Please is there a way to get this property with the report engine API?

Thanks]]>donino donino2013-02-02T12:19:20-00:00Re: How to get the report &quot;Layout preference&quot; with engine APIhttps://www.eclipse.org/forums/index.php/mv/msg/452486/1006850/#msg_1006850
Michael Williams2013-02-02T21:41:01-00:00Re: How to get the report &quot;Layout preference&quot; with engine APIhttps://www.eclipse.org/forums/index.php/mv/msg/452486/1006970/#msg_1006970
I use BIRT 4.2.1 both for Runtime / Eclipse Designer

You are right i missed it worked like this in the designer, though we still have an issue with it: as you can see in a script expression of the designer, unlike all others methods this function is not suggested by the code completion, i wonder why? If we try to use it in a java project from a ModuleHandle:

the Java project is refusing to be compiled because this method is unknown in the class ModuleHandle. I probably missed something, it seems to be the only report property that we are not able to retrieve from a "IReportRunnable" object, please could you help?

Thanks!]]>donino donino2013-02-03T11:19:49-00:00Re: How to get the report &quot;Layout preference&quot; with engine APIhttps://www.eclipse.org/forums/index.php/mv/msg/452486/1007021/#msg_1007021
reportDesign.getDesignHandle().getModuleHandle().getDisplayProperty("layoutPreference");]]>Michael Williams2013-02-04T05:46:52-00:00Re: How to get the report &quot;Layout preference&quot; with engine APIhttps://www.eclipse.org/forums/index.php/mv/msg/452486/1007124/#msg_1007124
donino donino2013-02-04T14:38:49-00:00Re: How to get the report &quot;Layout preference&quot; with engine APIhttps://www.eclipse.org/forums/index.php/mv/msg/452486/1007136/#msg_1007136
Michael Williams2013-02-04T15:23:31-00:00