Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView Class / SaveImage Method
The top row of the range.
The left column of the range.
The total number of rows in the range.
The total number of columns in the range.
The width of exported image. 0 to use the actual width of the range.
The height of exported image. 0 to use the actual height of the range.
A GrapeCity.Spreadsheet.WorksheetSubType value indicating which areas will be included into the saved image.


In This Topic
    SaveImage Method
    In This Topic
    Saves the specified range in the sheet to the specified image file.
    Syntax
    'Declaration
     
    
    Public Function SaveImage( _
       ByVal row As Integer, _
       ByVal column As Integer, _
       ByVal rowCount As Integer, _
       ByVal columnCount As Integer, _
       Optional ByVal width As Integer, _
       Optional ByVal height As Integer, _
       Optional ByVal includedAreas As WorksheetSubType _
    ) As Bitmap
    'Usage
     
    
    Dim instance As SheetView
    Dim row As Integer
    Dim column As Integer
    Dim rowCount As Integer
    Dim columnCount As Integer
    Dim width As Integer
    Dim height As Integer
    Dim includedAreas As WorksheetSubType
    Dim value As Bitmap
     
    value = instance.SaveImage(row, column, rowCount, columnCount, width, height, includedAreas)

    Parameters

    row
    The top row of the range.
    column
    The left column of the range.
    rowCount
    The total number of rows in the range.
    columnCount
    The total number of columns in the range.
    width
    The width of exported image. 0 to use the actual width of the range.
    height
    The height of exported image. 0 to use the actual height of the range.
    includedAreas
    A GrapeCity.Spreadsheet.WorksheetSubType value indicating which areas will be included into the saved image.

    Return Value

    A System.Drawing.Bitmap instance represents the image of the range.
    Remarks
    Due to the limitation of GDI+, the width and height cannot exceed 10000 pixels.
    See Also