News combit Dev Blog

Supporting SVG as Image Format

Posted: Wednesday, November 22, 2017 | 0 comment(s)
The Scalable Vector Graphics format has been around for quite a while. The first specification was released in 2001, and meanwhile all browsers offer solid support for SVG. During the years, we've received a couple of requests to support SVG in List & Label. Initially, I was hoping for Microsoft to make SVG rendering support a Windows feature that we could just use. However, that hasn't happened so far. And so we had to come up with a different solution.

Enter the excellent Delphi SVG library written by Bruno Verhue. We've managed to agree on licensing terms that allowed us to make SVG rendering finally happen in List & Label. Usage is absolutely straightforward – if you add a new image to your report, SVG is available just like all the other formats:

Of course, you can also use the usual Drawing() designer function to just pass a path via formula.

As SVG features some rather complex filters, a 1:1 translation to EMF (which is our current base format) is not really feasible as the result wouldn't be too appealing. Thus, the library generates a raster format in just the right size to make sure no unnecessary memory is used. Here's an example what the result looks like:

Since most browsers already support the SVG format anyway, the SVG images are used directly 1:1 for HTML export without conversions.

Author: Jochen Bartlau
Head of Development List & Label

Jochen Bartlau leads the development at combit as Managing Director. He's a Microsoft .NET enthusiast driving innovation & agile project management. The mobile devices geek who used to be a physicist in his first life loves to spend his spare time with his family.


+1 800 256 3608 (toll-free North America only)