TfrxPictureView NOT transparent??

edited 2:30AM in FastReport 4.0
I put TfrxPictureView Objects by code on my report. Problem is that these Objects does not appear transparent.
Here is some code:
    Report.StartNewReport;  //Just load the basic report from file
    Report.AddPictureObject(VTPainter.Metafile, 0);
    Report.ShowReport;

The following method adds a metafile to the report.
function TReportInterface.AddPictureObject(const Metafile: TMetafile; UniqueIndex: Integer):string;
var
  PicView: TfrxPictureView;
  Memo: TfrxMemoView;
  Page: TfrxPage;
begin
  PicView := TfrxPictureView.Create(FReport.Pages[1]);
  PicView.Picture.Assign(Metafile);
  PicView.Name := 'PictureTubesheet_' + IntToStr(UniqueIndex);
  PicView.SetBounds(0, 0, Metafile.Width, Metafile.Height);
  PicView.AutoSize := True;
  PicView.Align := baCenter;
  PicView.Center := True;
  PicView.Color := clNone;
  PicView.BrushStyle := bsSolid;  //bsClear also does not take effect
  PicView.Tag := UniqueIndex;
  PicView.Cursor := crCross;
  PicView.Frame.Style := fsSolid;
  PicView.Frame.Color := clNone;
  PicView.Frame.Typ := [];
  Result := PicView.Name;
end;

Why does the Object not appear transparent on the report? I have always a opaque rectangle The metafile itself is transparent.

Just the following method changes the apperance of TfrxPictureViews to transparent
procedure TReportInterface.SetTransparentPictureBackground(ShowPreparedReport: Boolean = False);
var
  Iterator: TPictureObjectIterator;
  Obj: TfrxPictureView;
begin
  Iterator := TPictureObjectIterator.Create(FReport.PreviewPages.Page[0].AllObjects);
  try
    while Iterator.MoveNext do
      Iterator.Current.Color := clNone;

    if ShowPreparedReport then
      Self.ShowPreparedReport;
  finally
    FreeAndNil(Iterator);
  end;
end;

What can I do ro what do I wrong to get my objects transparent right away?

Thanks for help

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.