SpreadsheetDocumentDrawing.Place

Syntax:

Place(<CellArea>)

Parameters:

<CellArea> (required)

Type: SpreadsheetDocumentRange.
Area where the drawing is to be placed.

Description:

Places a drawing in the specified spreadsheet cell area.

Availability:

Server, thick client, external connection, Mobile application (server).

Example:

Spreadsheet = New SpreadsheetDocument;
MyPicture = New Picture("C:\My Documents\qwerty.bmp");
Pict=Spreadsheet.Drawings.Add(SpreadsheetDocumentDrawingType.Picture);
IndexOf=Spreadsheet.Drawings.IndexOf(Pict);
Spreadsheet.Drawings[IndexOf].Picture = MyPicture;
Spreadsheet.Drawings[IndexOf].Place(Spreadsheet.Area("R1C1:R4C4"));
Spreadsheet.Show();


    

1C:Enterprise Developer's Community