UiPath Documentation
activities
latest
false
生産性を高めるアクティビティ
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

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

説明

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.

注:

The only supported Workbook format is .xlsx.

The following image formats are supported:

  • PNG
  • JPEG
  • GIF
  • BMP
  • TIFF
  • WebP
  • PCX

プロジェクトの対応 OS

Windows | クロスプラットフォーム

構成

  • ファイル - リソースのブックのフル パスです。ローカル パスに切り替えるには、プラス記号のアイコンを選択し、[ローカル ファイルを使用] を選択します。現在のフィールドが [ファイル (ローカル パス)] に変更され、ブックのフル パスを指定できます。
  • 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.

ブックを使用する

  • ブック - 使用する既存のブックです。

入力

  • 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 height結果
未設定未設定The image keeps its original dimensions.
Set未設定The height scales proportionally, preserving the aspect ratio.
未設定SetThe width scales proportionally, preserving the aspect ratio.
SetSetThe image uses the exact dimensions you set. The aspect ratio is not preserved.
注:

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.

オプション

  • パスワード - ブックのパスワードです (必要な場合)。
  • 説明
  • プロジェクトの対応 OS
  • 構成
  • ブックを使用する
  • 入力
  • オプション

このページは役に立ちましたか?

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得