How to load ole object from file to frxOleView (MasteBand)

I keep in a table paths to a diffrent files types (doc, jpg, AutoDesk files).
I would like to show it by using frxOleView on MasterBand.
When I use frxPictureView I load pictures in that way:

procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
Begin
Picture1.LoadFromFile(path_to_picture_file);
end;

It doesn't work with frxOleView.
How to load ole object from file to frxOleView ?

ZS

Leave a Comment