To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=74657
Issue #|74657
Summary|oDesktop.LoadComponentFromURL causes error in macro
Component|api
Version|OOo 2.1
Platform|All
URL|
OS/Version|Windows XP
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|code
Assigned to|jsc
Reported by|schmieta
------- Additional comments from [EMAIL PROTECTED] Mon Feb 19 12:37:36 +0000
2007 -------
Hi,
when I'm running the following macro on my machine it causes an error in the
line "oDocument = oDesktop.LoadComponentFromURL(sUrl,"_blank",0,mNoArgs)"
saying: "BASIC Laufzeitfehler. Objektvariable nicht belegt".
I am using openOffice.org 2.1 on Windows XP, SP2.
The same macro on the same machine runs fine when I call it in openOffice.org
1.0.1. It opens a new openOffice.org - document...
Calling the repair option from the installation makes no difference.
Allthough it would not say so in the Help Menu I think I am using the latest
version of openOffice.org available in german.
Thanks for your attention
sub test
oDesktop = createUnoService("com.sun.star.frame.Desktop")
sUrl = "staroffice.factory:swriter"
oDocument = oDesktop.LoadComponentFromURL(sUrl,"_blank",0,mNoArgs)
oText = oDocument.Text
oText.setString("")
oCursor = oText.createTextCursor()
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]