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

Question about SVG support in TppImage

Hi there,

Can TppImage in Delphi work with SVG files? I can see that TImage supports SVG, but the GraphicType property in TppImage doesn't seem to include SVG.

Thanks for your help!

Comments

  • Hi Bohdan,

    SVG is currently not natively supported by the DBImage in ReportBuilder. This is primarily due to the fact that the TSkSvgGraphic class is located in the implementation section of the Vcl.Skia unit making it inaccessible to our graphic-type registration architecture. We are in the process of developing a work-around to enable this for a future release.

    Currently it is possible to manually load SVG data into the TPicture of the TppImage component.
    uses 
    Vcl.Skia;
    ...
    procedure TForm2.ppImage1Print(Sender: TObject);
    begin
    ppImage1.Picture.LoadFromFile('sample.svg');
    //ppImage1.Picture.LoadFromStream(myDBData); //if loading from DB

    end;
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.