Class TWPMMInsertTextContents
Hierarchy
System.TObject | System.Classes.TPersistent | System.Classes.TComponent | TWPMMInsertTextContents
Description
The TWPMMInsertTextContents is used as a parameter 'Contents' in the event OnMailMergeGetText. You can replace a string by simply assign a string to StringValue.To Modify the attribute of the inserted text change the property 'MergeAttr'. You can modify the paragraph the start of the field is located. This paragraph is accessible through MergePar.
Upgrade Note: The parameter 'c' is not supported anymore. But please note that you can use the common programing interface to insert text and objects. Note: When the event is called the the whole field is selected.
Properties
Property Bookmark : string
Property c : Char
Property CodePage : Integer
Property Command : string
Property CurrencyValue : Double
Property CurrentObject : TWPObject
Property CurrentTxtObject : TWPTextObj
Property DataBlock : TWPRTFDataBlock
Property DataCollection : TWPRTFDataCollectionBase
Property DatasetnamePart : string
Property DisplayName : string
Property EndInspObject : TWPTextObj
Property FieldnamePart : string
Property Format : Integer
Property Hyperlink : string
Property HyperlinkName : string
Property LoadFormatString : string
Property MergeAttr : TWPStoredCharAttrInterface
Property MergePar : TParagraph
Property MergeParPos : Integer
Property Modified : Boolean
Property Name : string
Property Obj : TObject
Property ObjType : TWPTextObjType
Property OldFormattedText : string
Property OldIsPlain : Boolean
Property OldText : string
Property Options : TWPMailMergeContinueOptions
Property Readonly : Boolean
Property ReplaceMode : TWPMMInsertTextContentsReplaceMode
Property StartInspObject : TWPTextObj
Property StringValue : AnsiString
Property WideStringValue : WideString
Methods
Create(aDataCollection:TWPRTFDataCollectionBase)
Function DatasetIs(name:string) : Boolean
Function InputTextFieldName(FieldName:string; FieldMask:string; FieldParams:string) : TWPTextObj
Function LoadImageFromFile(FileName:string; w:Integer; h:Integer) : Boolean
Function LoadImageFromStream(ImageData:TStream; FileExt:string; w:Integer; h:Integer) : Boolean
Procedure LoadTextFromFile(FileName:string)
Procedure LoadTextFromStream(s:TStream)
Procedure SetBoolean(value:Boolean; mode:TWPMMBooleanConversion)
Events
BeforeInsertText : TWPMMBeforeInsertTextEvent= TWPMMBeforeInsertTextEvent
When loading text this event can be used to modify the RTFDataBlock before the contents is inserted into the desination. This makes it very easy to add additional text befvore or after the text ro adjust properties such as indents or style names
Used or referenced by
-Function glWPProcessField(Sender:TWPRTFDataBlock; PostProcess:Boolean; Contents:TWPMMInsertTextContents; Cursor:TWPRTFDataCursor) : Boolean |