com.esri.arcgis.arcmap
Class Report

java.lang.Object
  extended by com.esri.arcgis.arcmap.Report
All Implemented Interfaces:
IReportDataSource, IReportEngine, IReportTemplate, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class Report
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IReportDataSource, IReportEngine, IReportTemplate

COM Class 'Report'. Generated 3/19/2015 1:20:50 PM from 'C:\ArcGIS\COM\esriArcMap.olb'

Description 'The Report class implements the report engine.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.arcmap.IReportDataSource
IID, IID174803ec_867f_4a6e_9035_2b558ed0589e, xxDummy
 
Fields inherited from interface com.esri.arcgis.arcmap.IReportEngine
IID, IIDf94b2bd2_edfe_4e39_90d0_e19ea3345645, xxDummy
 
Fields inherited from interface com.esri.arcgis.arcmap.IReportTemplate
IID, IID4ba9f129_fea1_4caf_b29f_349df95deee8, xxDummy
 
Constructor Summary
Report()
          Constructs a Report using ArcGIS Engine.
Report(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
Report theReport = (Report) obj;
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 boolean exportReport(java.lang.String filePath, java.lang.String pages, int type)
          Exports an executed report in the desired format.
 boolean fieldMapping(java.lang.String templateFieldList, java.lang.String sourceFieldList)
          Sets the field mapping from the report template to the new fields.
static java.lang.String getClsid()
          getClsid.
 java.lang.String getDefinitionQuery()
          Indicates the definition expression for the report.
 IGeometry getExtent()
          Indicates the extent of the report features.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 ILayer getLayer()
          Indicates the data for the report is from a layer.
 java.lang.String getReportTitle()
          Indicates the title for the report.
 ISelectionSet getSelectionSet()
          Indicates the selection set for the report.
 int getStartingPageNumber()
          Indicates the starting page number for the report.
 ITable getTable()
          Indicates the data for the report is from a table.
 int hashCode()
          the hashcode for this object
 boolean loadReportTemplate(java.lang.String templateFilePath)
          Loads the report template file.
 boolean relatedReportMapping(java.lang.String relatedReportName, IRelationshipClass pSourceRelationshipClass, java.lang.String templateFieldList, java.lang.String sourceFieldList)
          Sets the mapping information for a related report.
 void release()
          Release a Report.
 boolean runReport(ITrackCancel pTrackCancel)
          Executes the report base on the IReportDataSource properties.
 boolean saveReportTemplate(java.lang.String templateFilePath)
          Saves the report as a template file.
 void setDefinitionQuery(java.lang.String pDefinitionQuery)
          Indicates the definition expression for the report.
 void setExtentByRef(IGeometry ppExtent)
          Indicates the extent of the report features.
 void setLayerByRef(ILayer ppLayer)
          Indicates the data for the report is from a layer.
 void setReportTitle(java.lang.String pReportTitle)
          Indicates the title for the report.
 void setSelectionSetByRef(ISelectionSet ppSelectionSet)
          Indicates the selection set for the report.
 void setStartingPageNumber(int pStartingPageNumber)
          Indicates the starting page number for the report.
 void setTableByRef(ITable ppTable)
          Indicates the data for the report is from a table.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Report

public Report()
       throws java.io.IOException,
              java.net.UnknownHostException
Constructs a Report using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

Report

public Report(java.lang.Object obj)
       throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
Report theReport = (Report) obj;

Construct a Report using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to Report.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a Report.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getLayer

public ILayer getLayer()
                throws java.io.IOException,
                       AutomationException
Indicates the data for the report is from a layer.

Specified by:
getLayer in interface IReportDataSource
Returns:
A reference to a com.esri.arcgis.carto.ILayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLayerByRef

public void setLayerByRef(ILayer ppLayer)
                   throws java.io.IOException,
                          AutomationException
Indicates the data for the report is from a layer.

Specified by:
setLayerByRef in interface IReportDataSource
Parameters:
ppLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTable

public ITable getTable()
                throws java.io.IOException,
                       AutomationException
Indicates the data for the report is from a table.

Specified by:
getTable in interface IReportDataSource
Returns:
A reference to a com.esri.arcgis.geodatabase.ITable
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTableByRef

public void setTableByRef(ITable ppTable)
                   throws java.io.IOException,
                          AutomationException
Indicates the data for the report is from a table.

Specified by:
setTableByRef in interface IReportDataSource
Parameters:
ppTable - A reference to a com.esri.arcgis.geodatabase.ITable (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDefinitionQuery

public java.lang.String getDefinitionQuery()
                                    throws java.io.IOException,
                                           AutomationException
Indicates the definition expression for the report.

Specified by:
getDefinitionQuery in interface IReportDataSource
Returns:
The pDefinitionQuery
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDefinitionQuery

public void setDefinitionQuery(java.lang.String pDefinitionQuery)
                        throws java.io.IOException,
                               AutomationException
Indicates the definition expression for the report.

Specified by:
setDefinitionQuery in interface IReportDataSource
Parameters:
pDefinitionQuery - The pDefinitionQuery (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSelectionSet

public ISelectionSet getSelectionSet()
                              throws java.io.IOException,
                                     AutomationException
Indicates the selection set for the report.

Specified by:
getSelectionSet in interface IReportDataSource
Returns:
A reference to a com.esri.arcgis.geodatabase.ISelectionSet
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSelectionSetByRef

public void setSelectionSetByRef(ISelectionSet ppSelectionSet)
                          throws java.io.IOException,
                                 AutomationException
Indicates the selection set for the report.

Specified by:
setSelectionSetByRef in interface IReportDataSource
Parameters:
ppSelectionSet - A reference to a com.esri.arcgis.geodatabase.ISelectionSet (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExtent

public IGeometry getExtent()
                    throws java.io.IOException,
                           AutomationException
Indicates the extent of the report features.

Specified by:
getExtent in interface IReportDataSource
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setExtentByRef

public void setExtentByRef(IGeometry ppExtent)
                    throws java.io.IOException,
                           AutomationException
Indicates the extent of the report features.

Specified by:
setExtentByRef in interface IReportDataSource
Parameters:
ppExtent - A reference to a com.esri.arcgis.geometry.IGeometry (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

runReport

public boolean runReport(ITrackCancel pTrackCancel)
                  throws java.io.IOException,
                         AutomationException
Executes the report base on the IReportDataSource properties.

Specified by:
runReport in interface IReportEngine
Parameters:
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Returns:
The pResult
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

exportReport

public boolean exportReport(java.lang.String filePath,
                            java.lang.String pages,
                            int type)
                     throws java.io.IOException,
                            AutomationException
Exports an executed report in the desired format.

Specified by:
exportReport in interface IReportEngine
Parameters:
filePath - The filePath (in)
pages - The pages (in)
type - A com.esri.arcgis.arcmap.esriReportExportType constant (in)
Returns:
The pResult
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getStartingPageNumber

public int getStartingPageNumber()
                          throws java.io.IOException,
                                 AutomationException
Indicates the starting page number for the report.

Specified by:
getStartingPageNumber in interface IReportTemplate
Returns:
The pStartingPageNumber
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setStartingPageNumber

public void setStartingPageNumber(int pStartingPageNumber)
                           throws java.io.IOException,
                                  AutomationException
Indicates the starting page number for the report.

Specified by:
setStartingPageNumber in interface IReportTemplate
Parameters:
pStartingPageNumber - The pStartingPageNumber (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getReportTitle

public java.lang.String getReportTitle()
                                throws java.io.IOException,
                                       AutomationException
Indicates the title for the report.

Specified by:
getReportTitle in interface IReportTemplate
Returns:
The pReportTitle
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setReportTitle

public void setReportTitle(java.lang.String pReportTitle)
                    throws java.io.IOException,
                           AutomationException
Indicates the title for the report.

Specified by:
setReportTitle in interface IReportTemplate
Parameters:
pReportTitle - The pReportTitle (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fieldMapping

public boolean fieldMapping(java.lang.String templateFieldList,
                            java.lang.String sourceFieldList)
                     throws java.io.IOException,
                            AutomationException
Sets the field mapping from the report template to the new fields.

Specified by:
fieldMapping in interface IReportTemplate
Parameters:
templateFieldList - The templateFieldList (in)
sourceFieldList - The sourceFieldList (in)
Returns:
The pResult
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

relatedReportMapping

public boolean relatedReportMapping(java.lang.String relatedReportName,
                                    IRelationshipClass pSourceRelationshipClass,
                                    java.lang.String templateFieldList,
                                    java.lang.String sourceFieldList)
                             throws java.io.IOException,
                                    AutomationException
Sets the mapping information for a related report.

Specified by:
relatedReportMapping in interface IReportTemplate
Parameters:
relatedReportName - The relatedReportName (in)
pSourceRelationshipClass - A reference to a com.esri.arcgis.geodatabase.IRelationshipClass (in)
templateFieldList - The templateFieldList (in)
sourceFieldList - The sourceFieldList (in)
Returns:
The pResult
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

loadReportTemplate

public boolean loadReportTemplate(java.lang.String templateFilePath)
                           throws java.io.IOException,
                                  AutomationException
Loads the report template file.

Specified by:
loadReportTemplate in interface IReportTemplate
Parameters:
templateFilePath - The templateFilePath (in)
Returns:
The pResult
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

saveReportTemplate

public boolean saveReportTemplate(java.lang.String templateFilePath)
                           throws java.io.IOException,
                                  AutomationException
Saves the report as a template file.

Specified by:
saveReportTemplate in interface IReportTemplate
Parameters:
templateFilePath - The templateFilePath (in)
Returns:
The pResult
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.