Red Hat Bugzilla – Bug 177632
problems with StarDesktop.loadComponentFromURL
Last modified: 2007-11-30 17:11:20 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7
Description of problem:
I am trying to use the OOoLatexMacro package with Openoffice Impress (see http://ooolatex.sourceforge.net/)
When you run this, an error is generated, and the debugger window pops up. After a few exchanged with the developer, it seems that the problem is confined to the Linux version of Openoffice (and perhaps even just Fedora). The developer posted some comments on the oooforum:
A simple test case is to try running the macro:
cURL = "file:///home/<login>/tmpfile.png"
oDrawDoc = StarDesktop.loadComponentFromURL( cURL, "_blank", 0, NoArg() )
under Fedora, this crashes, with the error "BASIC runtime error. Object variable not set", and the debugger pops up with the "MsgBox..." line highlighted.
There is some evidence in the oooforum thread that this works fine in Mandriva.
I am attaching the macro and script to reproduce this problem.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run the macro
Actual Results: debugger pops up.
Expected Results: image should appear
Created attachment 123121 [details]
header file for sample macro
Created attachment 123122 [details]
macro that crashes
Created attachment 123123 [details]
sample file for macro
Install openoffice.org-graphicfilter to get the .png and other bitmap and vector