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         frank.schoenh...@sun.com -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Base                       http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to