Se inserisco un segnalibro all'interno di un footer è visibile come tutti
gli altri se faccio
bmks = ThisComponent.getBookMarks
Altra domanda, il segnalibro inserito nel footer si ripete sempre?
Perchè io devo fqare una macro che faccia un copia incolla del testo in un
segnalibro e lo inserisca in un segnalibro presente nel footer.
Di seguito il codice scritto fin ora
------------------------------------------------------------
bmks = ThisComponent.getBookMarks
If bmks.hasByName("CodInterno") then
p = ThisComponent.getBookmarks.getByName("CodInterno")
oTC = ThisComponent.Text.CreateTextCursorByRange(p.Anchor)
oTC.gotoStartOfParagraph(false)
oTC.gotoEndOfParagraph(true)
'xray oTC
ToCopy = oTC.getString()
oTC.setstring("")
If bmks.hasByName("CodInternoFooter") then
xray bmks
p1 = ThisComponent.getBookmarks.getByName("CodInternoFooter")
oTC1 = ThisComponent.Text.CreateTextCursorByRange(p1.Anchor)
oTC1.gotoStartOfParagraph(false)
oTC1.gotoEndOfParagraph(true)
xray oTC1
Else
End If
End If
----------------------------------------------------------------------
Il problema è che
p1 = ThisComponent.getBookmarks.getByName("CodInternoFooter")
mi ritorna un RunTime Exception
Grazie
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]