Previous Topic

Next Topic

Book Contents

Book Index

ReplaceWithVariable

Description:

ReplaceWithVariable indicate to II2LN that the imported image should replace a variable in the rich text field. This is a powerful feature which enables you to use document templates already containing information.

ReplaceWithVariable also enables II2LN to replace variables in any field in the document

Declaration:

ReplaceWithVariable:<Variable>


Parameters:

Param

Description

<Variable>

The variable to search for in the rich text field. If you for example specify $(Image), then II2LN would replace that variable with the image


Notes:

Below the effect of the ReplaceWithVariable import option is demonstrated:

  1. The original image is a car-picture

    Linked/Linked GIF - II2LN
  2. Then we have an Notes document with some content in the rich text field

    Linked/Linked GIF - II2LN

    Note the use of variables in the image above. All variables will be replaced by actual content during import
  3. Import the image with the following ImportImage call and the ReplaceWithVariable set

    lRc = ImportImage(_db.Server,_
    db.FilePath,_
    doc.UniversalID, _
    "Body",_
    strFileName,_
    "
    ReplaceWithVariable:$(Image);Resize:200,200")

    The LotusScript code above will import the image with the filename stored in strFileName, into the Body rich text field. Note how we specify that we want to replace the $(Image) variable. Finally we resize the image during import to 200 x 200 pixels
  4. Below you see the nice result!

    Linked/Linked GIF - II2LN
    Note that the $(Image) variable has been replaced by the imported (and reszied) image. Additionally the four image-variables at the bottom has been replaced by their real values! See more on available variables here.

Introduced in version:

1.0.0.0

Repeatable

No

See Also

All Import Options

AttachImportFile

AppendIPTC

AttachOriginalFile

AttachPreviewFile

AutoOrientation

Blur

CanvasFormatWithColor

ClearExistingMetadata

ExtractEXIFToField

ExtractIPTCToField

ExtractImageVariablesToField

FavorPhotoshop

Flip

ForceImportFilename

ImpersonateAs

InsertIPTC

LeaveDXLBackup

LoadTIFFFrame

OverlayImage

WriteText

OutputSize

ProcessTimeField

ReplaceEXIF

ReplaceIPTC

Resize

ResizeMetric

Rotate

SetDPI

SetGhostscriptParameters

SetGhostscriptProcessor

SetLogFilename

SetLogLevel

ResizeMethod

SetResizeNoEnlargement

SetWebGrabBrowserSize

SetWebGrabClipRect

SetWebGrabDelay

SetWebGrabEnableActiveX

SetWebGrabEnableJava

SetWebGrabEnableScript

SetWebGrabTimeout

SetWebGrabZoom

StrictImageVerification

Sharpen

UseImageResourceDatabase

WorkingPath