GetImageBytes

The GetImageBytes command allows you to get HTML code that consists of net bytes of a drawing object (an image, a chart, or a shape) belonging to a spreadsheet file. To use this command in your post, you can use short code similar to the one below.

[sclapi command="GetImageBytes" filename="MyTestApplication.xlsx" sheetindex=0 range="A1:B6" picturetype="picture"]

Command Parameters

  • filename - a string value that specifies the required document's file name along with the extension.

  • sheetname - a string value that specifies the worksheet name.

    - or -

    sheetindex - a zero-based index of the worksheet.

  • range - a string value that specifies a cell range from which cells are exported. For example, range=”A1:B2”.

    - or -

    startrowindex - a zero-based index of the first row starting from which cells are exported.

    endrowindex - a zero-based index of the last row that limits the exported cell area.

    startcolumnindex - a zero-based index of the first column starting from which cells are exported.

    endcolumnindex - a zero-based index of the last column that limits the exported cell area.


    If none of the parameters above are specified, a used range of a worksheet is taken into account.

  • objectindex - a zero-based index of a drawing object. The default value is 0. You use this parameter if there are several drawing objects in a cell and you don't need to get all of them.

  • picturetype - a string value that specifies the type of required objects. Available types are picture and chart.