Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Picture.LoadFromFile

edited November 2003 in General
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

Comments

  • edited November 2003
    Ohoh...
    excuse me, just my mistake.

    works nice:

    MyImage.Picture.Metafile:= MyChart.TeeCreateMetafile(true, ChartRec);

    so sorry

    Stephan

This discussion has been closed.