Hello list,

I have run into a situation - have devised a work around for it - could use any suggestions for maybe a better way.

The situation.

Oen a Base file and then run one of these old style reports ( current Report Wizard reports ) the report will close if you close the Base file, of course when you close just the report window the Base file is not also closed.

The current report runner extension the has a major defect. I did not recognize it until I began working with odb files that are not registered. For this situation I need to actually perform a stardesktop.loadComponentFromURL on the odb file, hidden, then execute the report. Close the hidden odb file when the dialog box closes and the report closes of course. I realized that for those reports opened from registered Base files, using the services of the context manager, exactly the same situation was happening.

If you open one of these reports the Base file is implicitly 'opened hidden', brought into memory. When you close the report window it does not remove the Base file from memory. Which also means then that the soffice.exe process will stay in memory until one of two things happens:
1) Open the Base file the report came from and then close it.
or
2 )Kill the soffice.exe process explicitly.


The work around:

If the report is this old style then the program
1) Opens it to the desktop.
2) Save it as a temp file.
3) Set a listener on the report window
4) Immediately then closes the odb file.
5) When the user closes the report window, delete the temp file.

I was wondering if anyone can think of a better way to handle this?

Thanks for your time

Drew



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to