jueves, 4 de enero de 2018

[JD Edwards BI Publisher] External Image

Hi friends, happy new year!!! This year I have proposed to write more posts, for work and projects last year I had't sufficient time to write much posts...

In this post I want to comment how publish a external image as URL in BI Publisher, as example, QR Code, a logo, etc. This problem is very common, and with standard Word image is not possible.

For it, we use XSL-FO with the next syntax:

<fo:block>
<fo:external-graphic src="https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=bidi_test"/>
</fo:block>

Simply with block we'll add URL of extenal image in the source of extenal-graphic tag, and it will be responsible for rendering the image in our template. The source is in XML attribute, assigned in same variable, etc.

We can add other properties as "height", "width", etc. for custom the image.

Thus, we could generate dynamic images!!

I hope you find it useful!

Let's go!

[JD Edwards BI Publisher] Imagen Externa

Hola amigos, feliz año!!! Éste año me he propuesto escribir más posts, ya que por motivos laborales y de proyectos no tuve el suficiente tiempo para postear más...

En éste post quiero comentar cómo publicar en BI Publisher una imagen externa a través de una URL, por ejemplo un código QR, un logo, etc. Ésta problemática es muy común y con las imágenes estándar de word no es posible.

Para ello tenemos podemos usar XSL-FO con la siguiente sintaxis:

<fo:block>
<fo:external-graphic src="https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=bidi_test"/>
</fo:block>

Simplemente con un bloque añadimos en el source de la etiqueta external-graphic la URL de la imagen externa y éste se encargará de renderizar en nuestro template. El source lo tendremos en nuestras propiedades del XML, o podemos asignar alguna variable, etc.
Podemos añadir otras propiedades como "height", "width", etc para personalizar la imagen.

De ésta forma, podremos generar imágenes de manera dinámica!

Espero os sea de utilidad.

Let's go!