Hallo Frank ,

oReport.OpenDesign  >> craches OO (3.2 with windows XP)

Do i fill a issue or is it related with the "Hidden" opening issue ?

further i found that aArguments(i).Value = _
       com.sun.star.document.MacroExecMode.ALWAYS_EXECUTE

must be

aArguments(i).Value = "com.sun.star.document.MacroExecMode.ALWAYS_EXECUTE"

Greetz

Fernand


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



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

Reply via email to