Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
結果なしで検索を続けているので、ここで試してみます。PythonでOpenOffice用のドキュメントを作成しようとしています。ドキュメントの上部マージンを設定する方法が見つかりません。誰かがこれを行う方法を知っていますか?
前もって感謝します!
このようなものは私にとってはうまくいくようです(Pythonマクロのコンテキストで):
import uno def setMargin(): doc = XSCRIPTCONTEXT.getDocument() oStyle = doc.StyleFamilies.getByName("PageStyles").getByName("Default") oStyle.TopMargin = 5000 #Not sure what the units are