Another couple of questions - and it appears a Base issue ( see error
statement further down email )
Connections for reports that have been generated to the desktop, simply
- are they needed?
For instance in the report runner extension I started with this approach
for reports opened to the desktop.
oConnection = getConnection( ... )
oDocument = openDBDocument( ..., oConnection, ..... ) // this generates
a report file - not in edit mode
oConnection.dispose
Since it seems to me that it is not needed any longer and I wanted to be
sure that no connections ended up left hanging around.
That worked fine until I do this:
From the report window I select File>Exit
Now if the file was generated by Report Builder everything happens as
expected.
BUT
If the file is generated by Report Wizard, then all OOo windows close
except for the actual report window.
To get rid of this window you must explicitly do File > Close
OK - well, I thought that perhaps this was a problem with the connection
being disposed of, so I changed the flow to this:
oConnection = getConnection( ... )
oDocument = openDBDocument( ..., oConnection, ..... ) // this generates
a report file - not in edit mode
if oDocument = Report Builder generated file then
oConnection.dispose
Leaving the connection alone for the Report Wizard files.
But no change - File > Exit still leaves all Report Wizard files on the
desktop and they must be removed by File > Close ( or closed with the
System Menu button )
Alright - tried something different.
If the Report Wizard report is in database "MyDB" and I open MyDB on the
desktop before ReportRunner is used to open the report everything works
as expected.
WELL SORT OF...it works fine if only Quickstarter is running.
If Quickstarter is not running now there is a real problem. ( with the
connection left intact and the ODB file is NOT open on the desktop )
File > Exit from a Report Wizard generated file produces:
Microsoft Visual C++ Runtime Library
Runtime Error:
Program: C:\Program Files\OpenOffice.org 2.4\program\soffice.bin
R6025
-pure virtual function call
No Quickstarter and SUN Report Builder generated file. ( with the
connection disposed of )
File > Exit
OOo exits, No problem
Finally, No Quickstarter and the ODB file IS open on the desktop.
File > Exit ( Report Wizard generated file, with or without connection
having been disposed )
OOo exists, No Problem
First question - disposing of those connections after a report has been
run to the desktop, good idea?
As for a Base issue, I think it is and will check in Issue tracker for
something similar being there already.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]