
- 114 -
4. Selecttheappropriatevariablefromthelistofavailablevariables.
5. Clickonthelabelwhereyouwanttocreatethevariableimageobject.
Hint!Ifallimagesareofthesamefileformatandyoustoreallimagesinthesamefolderyoucan
defineaprefixandsuffixtothevariable.Whenthevariablewillobtaintheimagenameasitsvalue,
prefixwillprovidethepathtotheimageandsuffixwillprovidethefileextensions.Thiswaythe
wholepathandextensionofthegraphicsfilewillbeaddedautomatically,youjusthavetoprovide
theimagename.
For example:Ifyousetthevariableprefixto"C:\GRAPHICS\"andsuffixto".JPG"whilethevar-
iablehasthevalue"ROSE",theresultwillbe"C:\GRAPHICS\ROSE.JPG".Thelabelingsoftware
willtrytolocatethisimageanduseitonthelabel.
Whenyoudefinegraphicsasanvariableobject(somevariabledefinesthepathanfilenameofthe
picture),thelabelingsoftwaredoesnotknowthesizeofthepictureinadvance,becausethisinfor-
mationisprovidedonlyatprintorpreviewtime.Untilthepicturenameisknown,thepictureispre-
viewedasaquestionmark.
Usuallyyouwillprinttheimagesfromfilesthatoriginateinsomefilesystem.However,youcan
alsousetheimagesthatarestoredinthedatabaseBLOBfields.Inthiscasethereisnofilenameon
thedisk;thewholeimageisinfactstoredinthedatabase.
Using Variable Pictures from Blob Fields
YoucanusethepicturesstoredinthedatabaseBLOBfields.Thesedatabasefieldsdonotcontain
thereferencetotheimagelocationinsomefilesystem(pathandfilename),butcontaintheimage
itself.ThelabelingsoftwarewillreadthedatafromtheBLOBfield.
Ifthedatafromblobfieldisidentifiedastheimageitwilldisplayastheimageonthelabel,when
youlinksuchdatabasevariablewiththepictureobject.Youcanconnectsuchfieldtoanylabel
object,notonlypictureobject.Butthefieldvaluewillbeasfollows:
[IMAGEext=XXX]ID
where:
XXXstandsfortheimageextensionthatdefinestheimagetype
IDstandsfortheinternalnumberthatidentifieseachimagefromthedatabaseuniquely.
WhenyouusetheBLOBfieldswithMSSQLdatabaseserver,youcanembeddifferentimagetypes
intothefields(BMP,JPEG,GIF,PCX,TIFF,PNG,TGA,PXM,ICO,JP2,J2K).However,when
youusesomeotherdatabasetype,notalltypesmightbeaccessible.Bitmap(BMP)formatisalways
supported.
Handle Missing Images
Thelabelingsoftwareremembersthepathandfilenameofthepicturethatyouplaceonthelabel.
Eachtimeyouopenthelabel,thelabelingsoftwarechecksifthepicturesisaccessibleandthenuses
itonthelabel.Ifthepictureismissing,youwillseeawarningdialogbox.Youcan:
l Ignoretheerrorandtemporarilydesignthelabelwithouttheneededpicture.
l Discardthemissingpictureandpermanentlyremoveitfromthelabel.
l Browsetothemissingpictureifyouhavechangedthepicturefolderlocationorfile-
name.
Comentarios a estos manuales