Image Example VB

This example shows how to set the Image property using a variety of path and file name formats.

Private Sub cmdSetImage_Click()
    'Windows filename
    ImgEdit1.Image = "c:\insurance\claims\claim234.tif"
    'Showing syntax for 1.x Server document
    'Note: prefix Image:// denotes service name for 1.x server
    ImgEdit1.Image = "Image://srvrname\volname:\CABNAME\DRAWERNAME\FOLDERNAME\YOUR DOC"
   
    'Showing syntax for 1.x Server filename with a volume name mapped.
    ImgEdit1.Image = "Image://srvrname/volname:/dirname/temp.tif"
    
    'Showing syntax for 3.x Server document
    'Note: prefix Imagex:// denotes service name for 3.x server
    ImgEdit1.Image = "Imagex://docid1234"
   
    'URL syntax
    ImgEdit1.Image = "http://www.eastmansoftware.com/sbu/sampimg.tif"
    
    'UNC filename
    ImgEdit1.Image = "\\srvrname\shared3\images\bw\thisisa.tif"
End Sub