[gelöst] Hochstellen einer Zahl? (Fußnote)

Programmierung unter AOO/LO (StarBasic, Python, Java, ...)

Moderator: Moderatoren

Benutzeravatar
MikeRo
****
Beiträge: 153
Registriert: Mi, 20.01.2010 10:16

[gelöst] Hochstellen einer Zahl? (Fußnote)

Beitrag von MikeRo »

Hier die Lösung, um eine Zahl hochzustellen.

Ich erstelle einen Textcursor, gehe an das Ende vom Text in der Zelle, füge eine 1 ein und stelle diese Hoch.

Code: Alles auswählen

Sub FuZeile

        	   	   	Formate = oDoc.sheets.getByName("Angebot").getCellByPosition(3,9)
        	   	   	textcur = Formate.gettext().createtextcursor()
					textcur.gotoend(false)
					textcur.String = "1"
					textcur.goleft(1,true)
					textcur.CharEscapement = 33
					textcur.CharEscapementHeight = 80

End Sub
lg
Mike
OpenOffice 3.3 & postgresql-sdbc-driver 0.7.6b
Windows XP Professional SP3 x86