Macros/Python Guide/Documents/en

Return to Index

Document management within operating system manager
IMPORTANT For any argument path in methods of pyUNO objects, always use path in format URL, used function. Windows users note: path segments are separated by a slash (/).

CAUTION In the following examples, substitute USER with your real username.

New blank document
For other document types, use in  argument:
 * Impress:
 * Draw:
 * Math:

CAUTION Copy or import function  from Useful functions


 * For a new Base document, use:

Open
IMPORTANT Remember, always use file path in URL format.
 * Open with arguments


 * Others commons arguments

Export to PDF
Look more options for exporting in PDF export filter data


 * Export Calc document as PDF
 * Export with other options

Management in status bar
Now, try this.
 * Try this code
 * You cannot view anything because execution is blocked.

Return to Index