soffice -writer -headless -norestore
Usage: soffice [options] [documents...]
Options:
-minimized keep startup bitmap minimized.
-invisible no startup screen, no default document and no UI.
-norestore suppress restart/restore after fatal errors.
-quickstart starts the quickstart service (only available on windows and OS/2 platform)
-nologo don't show startup screen.
-nolockcheck don't check for remote instances using the installation
-nodefault don't start with an empty document
-headless like invisible but no userinteraction at all.
-help/-h/-? show this message and exit.
-writer create new text document.
-calc create new spreadsheet document.
-draw create new drawing.
-impress create new presentation.
-base create new database.
-math create new formula.
-global create new global document.
-web create new HTML document.
-o open documents regardless whether they are templates or not.
-n always open documents as new files (use as template).
-display <display>
Specify X-Display to use in Unix/X11 versions.
-p <documents...>
print the specified documents on the default printer.
-pt <printer> <documents...>
print the specified documents on the specified printer.
-view <documents...>
open the specified documents in viewer-(readonly-)mode.
-show <presentation>
open the specified presentation and start it immediately
-accept=<accept-string>
Specify an UNO connect-string to create an UNO acceptor through which
other programs can connect to access the API
-unaccept=<accept-string>
Close an acceptor that was created with -accept=<accept-string>
Use -unnaccept=all to close all open acceptors
Remaining arguments will be treated as filenames or URLs of documents to open.
2010年12月18日土曜日
2010年11月5日金曜日
pythonでOpenOffice calc with uno ー特定のシートを選択するにはー
sheet=doc.Sheets.getByIndex(0)
doc.getCurrentController().setActiveSheet(sheet)
doc.getCurrentController().setActiveSheet(sheet)
2010年1月14日木曜日
Open Office Calcで編集モードへの切り替え
編集モードへの切り替えはF2
嫌なら、[ツール]->[カスタマイズ]->[キーボード]で変更しよう。
テキトーなキーバインドをショートカットキーで選んで
範囲[内部]、機能[編集モードへの切り替え] を選択
変更ボタンをクリックするとキーに追加される。
嫌なら、[ツール]->[カスタマイズ]->[キーボード]で変更しよう。
テキトーなキーバインドをショートカットキーで選んで
範囲[内部]、機能[編集モードへの切り替え] を選択
変更ボタンをクリックするとキーに追加される。
2009年6月11日木曜日
マクロの設置場所 (pythonでOpenOffieをあやつる。)
pythonで作成したマクロは
$HOME./.openoffice.org/3/user/Scripts/の下にpythonを掘って入れよう。
$HOME./.openoffice.org/3/user/Scripts/の下にpythonを掘って入れよう。
pythonでOpenOffieをあやつる。
spreadsheetをCSVにしようとはじめたが嵌まった。なんぼやってもplane textで保存できなかった。
保存するときの引数を渡すときそれぞれがオブジェクトだということを忘れてました。
結局こう
saveProperty=[]
p=PropertyValue()
p.Name="FilterName"
p.Value="Text - txt - csv (StarCalc)"
saveProperty.append(p)
p=PropertyValue()
p.Name="FilterOptions"
p.Value="44,34,76,1"
saveProperty.append(p)
p=PropertyValue()
p.Name="SelectionOnly"
p.Value=True
saveProperty.append(p)
doc.storeToURL(unohelper.systemPathToFileUrl(fname), tuple(saveProperty))
ちなみにpythonでoooを操るときはそっけなくてあちこち行かなければならないAPIみるよりhttp://api.openoffice.org/docs/DevelopersGuide/DevelopersGuide.xhtmlのほうがましかも。
保存するときの引数を渡すときそれぞれがオブジェクトだということを忘れてました。
結局こう
saveProperty=[]
p=PropertyValue()
p.Name="FilterName"
p.Value="Text - txt - csv (StarCalc)"
saveProperty.append(p)
p=PropertyValue()
p.Name="FilterOptions"
p.Value="44,34,76,1"
saveProperty.append(p)
p=PropertyValue()
p.Name="SelectionOnly"
p.Value=True
saveProperty.append(p)
doc.storeToURL(unohelper.systemPathToFileUrl(fname), tuple(saveProperty))
ちなみにpythonでoooを操るときはそっけなくてあちこち行かなければならないAPIみるよりhttp://api.openoffice.org/docs/DevelopersGuide/DevelopersGuide.xhtmlのほうがましかも。
登録:
投稿 (Atom)