To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=48689
Issue #:|48689
Summary:|The Opendocument macro in the tools library does not
|work properly
Component:|api
Version:|OOo 2.0 Beta
Platform:|All
URL:|
OS/Version:|All
Status:|UNCONFIRMED
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|DEFECT
Priority:|P3
Subcomponent:|code
Assigned to:|sw
Reported by:|faltrion
------- Additional comments from [EMAIL PROTECTED] Wed May 4 03:10:54 -0700
2005 -------
The Opendocument macro in the tools library does not work properly, the problem
I had was that I was trying to open a document using this macro function and
nothing happened. when I used the debugging of the macro (added an breakpoint)
it was however working properly. this was strange, however I think I have found
the culprit.
--- from the script ---
...
If Not IsMissing(bDisposable) Then
bDisposable = True
End If
OpenDocument() =
StarDesktop.LoadComponentFromURL(DocPath,"_default",0,Args())
End Function
--- end ---
The problem is that StarDesktop.LoadComponentFromURL is using a deprecated value
for the searchflags (0) it looks liek the flag should be set to
com.sun.star.frame.FrameSearchFlag.ALL+com.sun.star.frame.FrameSearchFlag.CREATE
instead of the 0 (com.sun.star.frame.FrameSearchFlag.AUTO) that it is using now.
---------------------------------------------------------------------
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]