Frank,

Sorry i had the solution  right before my nose :-)
its not load , but loadcomponentfromURL



Sub Main
   dim Arguments(2) as New com.sun.star.beans.PropertyValue
   context = createUnoService("com.sun.star.sdb.DatabaseContext")
   oDataBase = context.getByName("mysql_native")
   oDBDoc = oDataBase.DatabaseDocument
   oReports = oDBDoc.getReportDocuments()
' msgbox oReports.dbg_methods

   Arguments(0).Name = "OpenMode"
   Arguments(0).Value = "open"
   Arguments(1).Name = "ActiveConnection"
   Arguments(1).Value = oDatabase.getConnection("user","pasword")
   Arguments(2).Name = "Hidden"
   Arguments(2).Value = false
oreport = oreports.getbyname("Jobbons1") oreportComponent = oreport.component xray oreportComponent
   oreportComponent.Filter = "pmgdbase.mag_jobs.JOBNR LIKE 'MMTbe%'"

oReports.loadComponentFromURL("Jobbons1","_blank",0,Arguments())

>>>>>here i still need to close the connection <<<<<<<<
End Sub


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

Reply via email to