[Libreoffice-bugs] [Bug 50789] Fast hand - slow frog (printing of not existing sheet)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 16 02:51:42 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=50789

--- Comment #4 from Lisp2D <lisp2d at rambler.ru> 2012-07-15 17:51:42 PDT ---
Macro:

    selectSheetByName(thisComponent, "Price blank")
    dispatchURL(thisComponent,".uno:SelectAll")
    dispatchURL(thisComponent,".uno:Copy")
    secondDoc =
StarDesktop.loadComponentFromUrl("private:factory/scalc","_blank",0,dimArray())
    secondDoc.getSheets().insertNewByName("Price",0)
    selectSheetByName(secondDoc, "Price")
    dispatchURL(secondDoc,".uno:Paste")
    thisComponent.getSheets.removeByName("Price")
    ' save
    secondDoc.storeAsUrl("file:///.../price" &
Str(secondDoc.getSheets.getByName("Price").getCellByPosition(5,3).Value) &
".ods",Array())
    secondDoc.close(true)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Libreoffice-bugs mailing list