{
// set the document to "not modified", to ensure that it won't ask the user before closing
XModifiable documentModify = UnoRuntime.queryInterface( XModifiable.class, m_reportDocument );
documentModify.setModified( false );
// actually close
XSubDocument subComponent = UnoRuntime.queryInterface( XSubDocument.class, m_documentDefinition );
subComponent.close();
}
}
catch ( Exception ex )
{
Logger.getLogger( ReportBuilderImplementation.class.getName() ).log( Level.SEVERE, null, ex );