Jump to content

InsertTimeField

From The Document Foundation Wiki
InsertTimeField()

Introduction

The InsertTimeField UNO dispatch function can be used to insert a field containing local time in LibreOffice.

Usage

The InsertTimeField UNO dispatch function takes no argument.

Purpose

Result

Definition

Code Examples

Sub InsertTimeFieldExample
    Dim oDispatchHelper As Object
    Dim args(1) As New com.sun.star.beans.PropertyValue
    
    Set oDispatchHelper = createUnoService("com.sun.star.frame.DispatchHelper")
    oDispatchHelper.executeDispatch(StarDesktop.getFrames().getByIndex(0), ".uno:InsertTimeField", "", 0, args)
End Sub
from scriptforge import CreateScriptService

def InsertTimeField_example():
    doc = CreateScriptService('SFDocuments.Document')
    doc.RunCommand('InsertTimeField', Document = 'LibreOffice Macros & Dialogs',
                  LibName = 'ScriptForge', Name = 'SF_Session', Line = 100)

Limitations

Notes

Links