To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=66184
                  Issue #:|66184
                  Summary:|OOo 1.0 macro fails with OOo 2.0
                Component:|framework
                  Version:|OOo 2.0.2
                 Platform:|All
                      URL:|http://www.openoffice.org/servlets/ReadMsg?list=users
                          |&msgNo=17481
               OS/Version:|All
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|scripting
              Assigned to:|npower
              Reported by:|burnus





------- Additional comments from [EMAIL PROTECTED] Tue Jun  6 14:00:46 -0700 
2006 -------
This is with SUSE's OpenOffice_org-2.0.2-27. The goal is to provide a button for
quick access to new from template. As the macro recorder does not work (issue
66183), I resort to the old technique suggested for OOo 1.0(see URL), which
worked rather nice.

If I run the macro (see url and below), it looks at first sight as if it worked
ok, but: " - OpenOffice..." rather than "Untitled1 - OpenOffice" is shown in the
title bar of the window and printing does not work. (It simply does not print).
If I click on the edit button twice (-> don't edit, ->edit) a dialog window pops
up, stating that one cannot write this document and suggested to open as new in
a new window. (Then the old window shows "(readonly)" in the title bar. The new
window/document works just fine in terms of "Untitled<n>" and printing.)

Sub CallTemplate
  dim oTemplate as object
  dim sTemplatePath as string
  dim mNoArgs()
  sTemplatePath="file:///C:/WINNT/Profiles/des.DOUGAN.000/Application 
  Data/OpenOffice.org/user/template/VCC/Memo.stw"
  oTemplate = StarDesktop.LoadComponentFromURL(sTemplatePath, "_blank", 0, 
mNoArgs())
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]

Reply via email to