UiPath Documentation
activities
latest
false
Activités de productivité
Important :
Veuillez noter que ce contenu a été localisé en partie à l’aide de la traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.

Insert Image Workbook

Properties and configuration for the Insert Image Workbook activity, which inserts an image into an Excel workbook at a specified cell anchor with optional pixel offset and scaling.

UiPath.Excel.Activities.InsertImage

Description

Inserts an image into a workbook sheet, anchored at a cell. The top-left corner of the image is placed at the anchor cell, offset by the values you set in Image left and Image top.

Remarque :

The only supported Workbook format is .xlsx.

The following image formats are supported:

  • PNG
  • JPEG
  • Gif
  • BMP
  • TIFF
  • WebP
  • PCX

Compatibilité du projet

Windows | Multiplate-forme

Configuration

  • Fichier - Chemin complet du classeur de ressources. Pour passer à un chemin local, sélectionnez l’icône plus, puis Utiliser le fichier local. Le champ actuel est remplacé par Fichier (chemin local), où vous pouvez fournir le chemin complet du classeur.
  • Image file - The resource file of the image to insert. To switch to a local path, select the plus icon, and then Use Local File. The current field changes to Image (local path), where you can provide the full path of the image.
  • SheetName - The sheet to insert the image into. If the sheet does not exist, it is created automatically. The default value is Sheet1.
  • Cell - The anchor cell for the top-left corner of the image. The default value is A1.

Utiliser le classeur

  • Classeur : le classeur existant à utiliser.

Entrée

  • Image left - The horizontal offset from the anchor cell, in pixels. The value must be 0 or greater. The default value is 0.
  • Image top - The vertical offset from the anchor cell, in pixels. The value must be 0 or greater. The default value is 0.
  • Image width - The width of the image, in pixels. The value must be 0 or greater.
  • Image height - The height of the image, in pixels. The value must be 0 or greater.

The Image width and Image height values determine how the image is scaled:

Image widthImage heightRésultat
Non définiNon définiThe image keeps its original dimensions.
EnsembleNon définiThe height scales proportionally, preserving the aspect ratio.
Non définiEnsembleThe width scales proportionally, preserving the aspect ratio.
EnsembleEnsembleThe image uses the exact dimensions you set. The aspect ratio is not preserved.
Remarque :

The image is anchored to the cell that you specify in Cell, which limits how you can position it:

  • Image left and Image top are capped at the width and height of the anchor cell, so an offset larger than the cell places the image at the cell's edge instead.
  • If you resize the anchor cell, the image moves with it, but keeps its own dimensions.

The activity does not support anchoring an image between two cells, or placing an image at a fixed position that is independent of any cell.

Options

  • Mot de passe : le mot de passe du classeur, si nécessaire.
  • Description
  • Compatibilité du projet
  • Configuration
  • Utiliser le classeur
  • Entrée
  • Options

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance

Vous souhaitez apprendre ? UiPath Academy

Vous avez des questions ? UiPath Forum

Rester à jour