作成日: 2024/07/11 最終更新日: 2024/11/13
文書種別
不具合
状況
修正済み
詳細
PictureコントロールにTiff形式の画像を、以下のように設定しても表示されない場合があります。
◆サンプルコード (C#)
this.picture.Image = GrapeCity.ActiveReports.Document.Drawing.Image.FromStream(fs);
◆サンプルコード (VB.NET)
Me.picture.Image = GrapeCity.ActiveReports.Document.Drawing.Image.FromStream(fs)
回避方法
SP1 (18.1.1.0) で修正済み
※以前の回避方法
画像をbyte配列に変換して、ImageBytesプロパティに設定してください。
◆サンプルコード (C#)
this.picture.ImageBytes = File.ReadAllBytes(filepath);
◆サンプルコード (VB.NET)
Me.picture.ImageBytes = File.ReadAllBytes(filepath)