iam using file upload control . when i attached any file it displays in the field(computed for display) which contains formula
:
atts := @AttachmentNames;
jpgs := @Trim(@LeftBack(atts; “.bmp”)) + “.bmp”;
@Implode(“<img src="/” + @WebDbName + “/0/” + @Text(@DocumentUniqueID) + “/$File/” + jpgs + “">”; “
”)
on @command([filesave])
i want to display as any type of image it should display as passport image
Subject: passport image on web using fileupload control
dear scarlet,
for display image in passport size , u have to create 2 computes text which
contians following formulas:
1)img := @AttachmentNames;
extns := @RightBack(img;“.”);
nondispXT := @Trim(@Replace(extns; “bmp” : “jpg” : “jpeg” : “gif”;“”));
style := @Replace(extns; nondispXT; “none”);
imgTag := @Implode(“<Img Src="/” + dbPath + “/URLIndex/” +
@Text(@DocumentUniqueID) + “/$File/” + img + “?OpenElement" Border="0"
style='display:” + style + “’ height="35" width="140">”);
“p Align="Center">” + @If(img = “”; “picture is not available !!”;
imgTag) + “
]”
2)temp := @If( @Attachments=0; “”; @Return(“”));
“
”+
“picture not available”+
“
”