Picture.LoadFromFile
Hi 2 all,
thank you for nice help last time. Everything works great.
Just one question:
what is missing when I try to load a *.wmf-File on runtime into a TppImage ?
//
MyImage.Picture.LoadFromFile(strPath2WMFFile);
MyReport.Print;
//
After that, no picture is displayed.
By the way, it is a WMF from a TeeChart (5.0.3 for D7). Is there another way
to get an image from TeeChart to my report, perhaps without saving temporaly
?
Thanks for your help,
Stephan
thank you for nice help last time. Everything works great.
Just one question:
what is missing when I try to load a *.wmf-File on runtime into a TppImage ?
//
MyImage.Picture.LoadFromFile(strPath2WMFFile);
MyReport.Print;
//
After that, no picture is displayed.
By the way, it is a WMF from a TeeChart (5.0.3 for D7). Is there another way
to get an image from TeeChart to my report, perhaps without saving temporaly
?
Thanks for your help,
Stephan
This discussion has been closed.
Comments
excuse me, just my mistake.
works nice:
MyImage.Picture.Metafile:= MyChart.TeeCreateMetafile(true, ChartRec);
so sorry
Stephan