Hello,
my solution:
// Save the image with vectorial objects
ImageEnVect1.Proc.SaveUndo;
// Merge vectorial objects with the background image
ImageEnVect1.CopyObjectsToBack(True);
// Do print preview
iIEBitmap := TIEBitmap.Create;
try
iImageEnIO := TImageEnIO.Create(nil);
try
iImageEnIO.AttachedIEBitmap := iIEBitmap;
ImageEnVect1.CopySelectionToBitmap(iIEBitmap);
iImageEnIO.DoPrintPreviewDialog(iedtDialog, '');
finally
iImageEnIO.Free;
end;
finally
iIEBitmap.Free;
end;
// Restore objects from the merge
ImageEnVect1.Proc.Undo;