Domino 9 und frühere Versionen > Entwicklung
Formatierung bei Textkopie
eknori:
müsste dann so gehen ...
Set rtitemA = Source.GetFirstItem( rtiName)
Call rtitemB.AppendRTItem( rtitemA )
Axel:
Hi,
so wird das nix. Du kannst keine RTF-Felder mit FieldGetText auslesen.
ein Blick in die Designer-Hilfe wikrt manchmal Wunder. ;)
Auszug aus der Designer-Hilfe:
Dim docA As NotesDocument 'Destination-Dok.
Dim docB As NotesDocument 'Source-Dok.
Dim rtitemA As Variant
Dim rtitemB As Variant
'...set values of docA and docB...
Set rtitemA = docA.GetFirstItem( "Body" )
Set rtitemB = docB.GetFirstItem( "Body" )
If ( rtitemA.Type = RICHTEXT And _
rtitemB.Type = RICHTEXT ) Then
Call rtitemA.AppendRTItem( rtitemB )
Call docA.Save( False, True )
End If
klaussal:
... aus der designer-hilfe (fieldgettext):
In a document in read or Edit mode, returns the contents of a field you specify, as a string. If the field is of type numbers or date-time, its contents are converted to a string.
es geht nur so, wie eknori beschrieben hat.
dass es rt-felder sind, war leider nicht aus dem ersten eintrag ersichtlich. und dann kam eben das grosse abär.
war aber meinerseits nicht bös gemeint. t'schuldigung. :'(
Navigation
[0] Themen-Index
[*] Vorherige Sete
Zur normalen Ansicht wechseln