* implementation which is the bound form inside the document.
*/
public static XLoadable bindForm( XTextDocument aDoc, String formName, String sourceName,
String tableName) throws com.sun.star.uno.Exception {
XForm the_form = (XForm) AnyConverter.toObject(new Type(XForm.class),
FormTools.getForms(WriterTools.getDrawPage(aDoc)).getByName(formName));
XPropertySet formProps = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, the_form);
formProps.setPropertyValue("DataSourceName",sourceName);
formProps.setPropertyValue("Command",tableName);
formProps.setPropertyValue("CommandType",new Integer(com.sun.star.sdb.CommandType.TABLE));