Viscom Software Image Thumbnail CP ActiveX Control

AddCustomType Method

Description:   

Add the customizable file formats. When you load the files formats, it can display specific image file.

Usage:   

ImageThumbnailCP1.AddCustomType Parameter1, Parameter2

Return Value:

Return true - successful , Return false - Failure.

Parameter:

Parameter1 - the file extension . (Data Type: String)

Parameter2 - the image file will be displayed when the file extension is added into thumbnail.  (Data Type: String)

Example:   

This Visual Basic example Add the pdf file extension into thumbnail. If you add pdf file into thumlbnail, it will display testdpf.jpg as thumbnail image.

Private Sub cmdAdd_Click()     
   ImageThumbnailCP1.AddCustomType "pdf", "c:\testpdf.jpg"
End Sub