SSpread.TypePictPicture Property
Set the image in the cell at the picture cell,
Only valid for cells with the CellType property set to $CellTypePicture.
Before setting this property, use the Col , Row properties, and so on to specify what to do.
Specify the URL string of the image file or the ReaderObject . Specify null to unset the image . This property is for configuration only. Whenever you get a value, it returns null .
If you specify a URL , the file will be cached on your local computer for faster loading from the next time onwards. You can always get the latest files from the server by specifying the HttpResponse object.
To scale the image to fit the cell size, set the TypePictStretch property to $TRUE .
This property is subject to property inheritance for picture cells .
Use case
Col = 3;
Row = 2;
CellType = $CellTypePicture;
TypePictPicture = "img / sample1.png"; / * Cached * /
BlockMode = $TRUE;
Col = 3;
Row = 3;
Col2 = 5;
Row2 = 5;
CellType = $CellTypePicture;
TypePictPicture = getHttpSession (). Get ("img / sample2.png"); / * Not cached * /
BlockMode = $FALSE;
Related item
CellType, TypePictStretch properties.
HttpResponse class