logo
small logo
  • Producto
  • Comprar
  • Ayuda
  • Blogs
  • Consola de usarios Ayuda
    • en
    • pt
    • es
    • de
    • pl
    • JP
    • ZH
  • Página principal
  • /
  • Blogs
  • /
  • How to use SVGObject in FastReport .Net 2018.2
  • El evento de ExportParameters en WebReport.Report

    5 de octubre de 2020

    En FastReport 2020.1 hemos añadido la posibilidad de cambiar los parámetros de exportación. Para hacer

    read more
  • Toilet paper printing

    30 de marzo de 2020

    Gentlemen, jokes aside! Today we are talking about toilet paper. This essential hygiene product was

    read more
  • Los eventos PreviewControl.OnPrint y PreviewControl.OnExport

    1 de octubre de 2020

    En FastReport 2019.4 se agregó la posibilidad de suscribirse a los eventos PreviewControl.OnPrint y PreviewControl.OnExport,

    read more
  • Formato de MS Word vs. Open Document Text, ¿cuál es mejor?

    19 de octubre de 2020

    Hablando de editores de texto, presentamos inmediatamente corifeo como Microsoft Word, que durante muchos años

    read more
  • ¿Quiere generar tablas para un usuario: Excel u OpenOffice Calc?

    8 de octubre de 2020

    Tablas. Durante siglos, se han utilizado para presentar datos similares para llevar registros, contar cantidades

    read more

How to use SVGObject in FastReport .Net 2018.2

20 de mayo de 2018

Format SVG (Scalable Vector Graphic) was developed in the late 90's to display vector graphics in Web sites. The basic idea behind it is the use of XML for describing the image. This made SVG very popular in the web graphics. Using css or java script, it's easy to change the XML description of an image. Accordingly, it is easy to make an animation or just change the color.

Based on this, you can identify the main advantages and disadvantages compared to other formats popular in the web graphics, such as png and gif.

Advantages:

- small size;

- Flexibility. With CSS, you can quickly change the graphics settings, such as the background color or the position of the logo on the page;

- ability to resize the image without changing the quality. This is a feature of vector graphics;

Disadvantages:

- A large file size if the object consists of a large number of small elements.

As you can see, there are very few shortcomings.

In FastReport.Net, we can export the report to SVG format. But now we will talk about something else. Specifically, about the SVG report object. That is, about the possibility of inserting an SVG vector image into a report. For this, an SVG  object is provided on the toolbar in the report designer. Previously, this object was available as a plug-in to the report designer. Now it is included in the library.

This object is inherited from the Picture object, so the editing window is almost the same for it.

 

And on the report page, the SVG object has no difference from Picture:

To scale the image, simply drag the object with the mouse:

If you export this report in HTML format, the image will be exported as svg file, in html code the link will appear:

1
<img src="SVG.D366E814F147C36F912200FCD8949836.svg" alt=""/></td>

  To create an SVG object in the application code, use:

1
FastReport.SVG.SVGObject svg = new FastReport.SVG.SVGObject();

  Restrictions - the object is currently supported in the assembly for .Net Framework 4. In the future, .Net Core support is possible.

about product descargar comprar
avatar
Dmitriy Fedyashov
Technical Writer
Fast Reports Team: Dmitriy Fedyashov - Technical Writer at Fast Reports
.NET FastReport

Add comment
logo
  • 800-985-8986 (English, US)
  • +4930568373928 (German)
  • +55 19 98147-8148 (Portuguese)
  • info@fast-report.com
  • 901 N Pitt Str #325 Alexandria VA 22314
  • Comprar
  • Descargar
  • Documentación
  • Opiniones de usuarios
  • Cómo desinstalar nuestros productos
  • Enviar mensaje
  • FAQ
  • Toturial en vídeo
  • Foro
  • Documentación técnica
  • Nuestras noticias
  • Quiénes somos
  • Socios
  • Extended licensing
  • Contactos

© 1998-2022 by Fast Reports Inc.

  • Privacidad