Hi Fernand,
> - do an attachResource on the document, with the modified args
something like this (untested):
aArguments() = oDocument.getArgs()
For i=LBound(aArguments()) To UBound(aArguments() )
If ( aArguments(i).Name = "MacroExecutionMode" ) Then
aArguments(i).Value = _
com.sun.star.document.MacroExecMode.ALWAYS_EXECUTE
End If
Next i
oDocument.attachResource( oDocument.URL, aArguments() )
> - open the report designer hidden
> since this crashs until CWS dba33e is integrated, open it
> visibly, and immediately do a
> component.CurrentController.Frame.ContainerWindow.setVisible(FALSE)
again untested:
oReport.openDesign
oReportDesigner = oReport.component
oWindow = oReportDesigner.CurrentController.Frame.ContainerWindow
oWindow.setVisible(FALSE)
Ciao
Frank
--
- Frank Schönheit, Software Engineer [email protected] -
- Sun Microsystems http://www.sun.com/staroffice -
- OpenOffice.org Base http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]