I made an application under BASE OOo 2.3, in which buttons opened reports, with the script:
Code: Select all
Function OpenReport( formContainer as variant, oConnection as variant, sFormName as string, optional strMode as string ) as variant
Dim aProp(1) As New com.sun.star.beans.PropertyValue
dim openMode as string
if ismissing( strMode ) then
openMode = "open"
else
openMode = strMode
endif
aProp(0).Name = "ActiveConnection"
aProp(0).Value = oConnection
aProp(1).Name = "OpenMode"
aProp(1).Value = strMode
OpenReport = formContainer.loadComponentFromURL(sFormName,"_blank",0,aProp())
End Function
But now, I'm testing my application under OOo 3.0, and this don't work anymore! Is someone have an explanation? (Note that I use the same kind of function to open Forms, and that work fine.)
Thanks for your help,
Openmind