To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=109528
                 Issue #|109528
                 Summary|oReport.LoadDesign Crashes OO when DBdoc not open on D
                        |esktop
               Component|Database access
                 Version|OOO320m9
                Platform|PC
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|SRB
             Assigned to|dbaneedsconfirm
             Reported by|sos





------- Additional comments from s...@openoffice.org Tue Feb 23 08:29:13 +0000 
2010 -------
When tryin to changein BASIC the Filter settings before "open" a SRB Report 
without opening the DBdoc.
FS advised me to uses the OpenDesign method instead of opening the Report with 
the "Load" Method.
When opening a SRB Report with oReport.OpenDesign OO Crashes when the DBdoc is 
not open on the Desktop.

The code I used: 

  
    context = createUnoService("com.sun.star.sdb.DatabaseContext")
    oDataBase = context.getByName("test")
    oDBDoc = oDataBase.DatabaseDocument
    aArguments() = oDBDoc.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
  odbDoc.attachResource( oDBdoc.URL, aArguments() )
  oReports = oDBDoc.getReportDocuments()
    
    oreport = oreports.getbyname("test")

  oreport.opendesign '>> here OO crashes <<
    
 oreportComponent = oreport.component
 oreportComponent.Filter = "pmgdbase.mag_jobs.JOBNR LIKE 'MMTbe%'" 
 oReports.loadComponentFromURL("test","_blank",0,Arguments())

End Sub

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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

Reply via email to