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

Loading metafile

edited February 2006 in General
I believe it's possible to load a windows meta file into ReportBuilder.
I could find no mention of this in the developers guide however.

We are in the process of converting pdfs in blobs to raf. We can convert
the pdf to a .wmf. Now hoe can we load this into ReportBuilder so we can
save as raf? I've been looking at TppReport but perhaps another
component is used?

Thanks, Tom.

Comments

  • edited February 2006
    Hi Tom,

    The only way to load a Windows Meta File into a report is using the TppImage
    component. There is a tutorial located on page 282 that describes how this
    might be done. The name of the tutorial is "Forms Emulation with a WMF
    Image".

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2006
    Hi Nico,

  • edited February 2006
    Hi Tom,

    First try loading the WMF file into a Delphi TImage. ReportBuilder uses a
    similar method to display images on a report.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2006
    Nico Cizik (Digital Metaphors) wrote:

    Since we were having problems with wmf I converted to a .emf (extended
    windows metafile). This shows in a TImage fine and shows in the picture
    editor dialog of a TppImage after a load but doe not show at design time
    or report time. I am just doing a ppReport1.PrintReport and have also
    tried a ppImage1.Picture.LoadFromFile in OnPrint / OnBeforePrint which
    does not cause an exception but does not show. What am I missing?

    Thanks, Tom.
  • edited March 2006
    Hi Tom,

    This is not a known issue with the TppImage component. If you would like,
    you can send me a copy of the image you are trying to load and I can try it
    here on my machines. Please send the image in .zip format to
    support@digital-metaphors.com and I'll take a look at it for you.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.