To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=85507
Issue #|85507
Summary|Easier way to access a form or report component
Component|Database access
Version|OOH680m4
Platform|All
URL|
OS/Version|All
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|none
Assigned to|oj
Reported by|oj
------- Additional comments from [EMAIL PROTECTED] Wed Jan 23 12:02:45 +0000
2008 -------
It should be possible to access a report without creating the builder for it.
REM ***** BASIC *****
Sub Main
dim Arguments(2) as New com.sun.star.beans.PropertyValue
context = createUnoService("com.sun.star.sdb.DatabaseContext")
oDataBase = context.getByName("Bibliography")
oDBDoc = oDataBase.DatabaseDocument
oReports = oDBDoc.getReportDocuments()
' msgbox oReports.dbg_methods
Arguments(0).Name = "OpenMode"
Arguments(0).Value = "openDesign"
Arguments(1).Name = "ActiveConnection"
Arguments(1).Value = oDatabase.getConnection("","")
Arguments(2).Name = "Hidden"
Arguments(2).Value = 1
oReport = oReports.getByName("Report1").getComponent()
' change the statement
oReport.Command = "test"
msgbox oReport.dbg_properties
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]