The method getPageOrientation() is used for getting the orientation of the report page. You should call this method after calling the runReport method. The return value is an int value, and it can be LANDSCAPE or PORTRAIT. If it is -1, it makes no sense, and it is incorrect. For example, if you called it before calling runReport method.