Manual para comprender los archivos REPORTS de extensión .kut .
- CREADO POR: miguelajsmaps@gmail.com en https://github.com/Miguel-J/eneboo/wiki (YA NO EXISTE)
- FECHA CREACIÓN: 2014
- ACTUAL: miguelajsmaps@gmail.com en http://manuales-eneboo-pineboo.org/lenguajes-de-programacion-introduccion/lenguajes-de-programacion-reports/
- ULTIMA ACTUALIZACIÓN:Last updated: septiembre 20, 2021 at 8:32 am
Lenguajes de programación. REPORTS
[Volver al menú de general de lenguajes]
(http://manuales-eneboo-pineboo.org/lenguajes-de-programacion-introduccion)
Indice:
- Lenguaje que utiliza:
- Extensión del archivo: .ui
- Cómo poner un comentario:
- Tipos de archivos .ui:
- Estructura del tipo de archivo básico .ui:
- Está obsoleto y se sustituye por los INFORMES JASPER-REPORTS:
- Crear un INFORME JASPER-REPORTS a partir de un .kut:
Haz clic aquí para volver al índice
0. LENGUAJE QUE UTILIZA:
Kugar es una herramienta descontinuada para generar informes de calidad empresarial para KOffice.
https://en.wikipedia.org/wiki/Kugar
Genera informes de trabajo que se pueden ver e imprimir. Incluye un generador de informes independiente y uno dentro de un KPart. Este último significa que cualquier aplicación KDE puede ver los reportajes en su interior, por ejemplo dentro de Konqueror.
El Kugar trabaja juntando los datos generados por la aplicación con una plantilla para producir el informe final. Ambos se generan usando XML. Esto significa que las aplicaciones sólo deben preocuparse por generar sus propios datos. Una plantilla se puede consultar vía una URL, el cual permite tener librerías de plantillas gestionadas de manera centralizada.
Haz clic aquí para volver al índice
Extensión de archivos: .kut
Se pueden abrir con:
- «Wordpad».
- «Sublime Text2»
Haz clic aquí para volver al índice
4. ESTRUCTURA DE ARCHIVO BASICO:
Encabezado:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<?xml version = '1.0' encoding = 'UTF-8'?> <!DOCTYPE KugarTemplate SYSTEM "kugartemplate.dtd"> <KugarTemplate BottomMargin="40" TopMargin="40" RightMargin="30" LeftMargin="30" PageOrientation="1" PageSize="0" > <PageHeader Height="25" > <Label WordWrap="0" Width="820" X="0" Y="1" BorderStyle="0" Height="22" HAlignment="0" BorderColor="0,0,0" BackgroundColor="220,220,220" VAlignment="1" ForegroundColor="0,0,0" Text=" Trazabilidad de Artículos" FontWeight="75" FontSize="12" BorderWidth="0" FontFamily="Arial Narrow" /> <Label WordWrap="0" Width="40" X="730" Y="1" BorderStyle="0" Height="22" HAlignment="0" BorderColor="0,0,0" BackgroundColor="220,220,220" VAlignment="1" ForegroundColor="0,0,0" Text=" Fecha" FontWeight="50" FontSize="10" BorderWidth="0" FontFamily="Arial Narrow" /> <Special WordWrap="0" Width="50" X="770" Y="1" BorderStyle="0" Height="22" HAlignment="0" DateFormat="19" BorderColor="0,0,0" BackgroundColor="220,220,220" Type="0" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" Text="" FontWeight="50" FontSize="10" BorderWidth="1" FontFamily="Arial Narrow" /> <!--empresa--> <Field WordWrap="0" Width="300" X="0" Y="20" BorderStyle="0" NegValueColor="0,0,0" Height="20" HAlignment="0" DataType="0" Field="empresa.nombre" DateFormat="11" Currency="32" BorderColor="0,0,0" BackgroundColor="255,255,255" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" CommaSeparator="44" Text="[empresa.nombre]" FontWeight="50" FontSize="10" BorderWidth="1" Precision="2" FontFamily="Arial Narrow" /> </PageHeader> |
Cabecera:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<DetailHeader Level="0" Height="85"> <!--periodo--> <Label WordWrap="0" Width="40" X="0" Y="0" BorderStyle="0" Height="20" HAlignment="0" BorderColor="0,0,0" BackgroundColor="255,255,255" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" Text="Período" FontWeight="50" FontSize="10" BorderWidth="0" FontFamily="Arial Narrow" /> <Field WordWrap="0" Width="50" X="40" Y="0" BorderStyle="0" NegValueColor="0,0,0" Height="20" HAlignment="0" DataType="3" Field="i_trazaarticulos.fechadesde" DateFormat="19" Currency="32" BorderColor="0,0,0" BackgroundColor="255,255,255" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" CommaSeparator="44" Text="" FontWeight="50" FontSize="10" BorderWidth="1" Precision="2" FontFamily="Arial Narrow" /> <Field WordWrap="0" Width="50" X="40" Y="15" BorderStyle="0" NegValueColor="0,0,0" Height="20" HAlignment="0" DataType="3" Field="i_trazaarticulos.fechahasta" DateFormat="19" Currency="32" BorderColor="0,0,0" BackgroundColor="255,255,255" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" CommaSeparator="44" Text="[i_trazaarticulos.fechahasta]" FontWeight="50" FontSize="10" BorderWidth="1" Precision="2" FontFamily="Arial Narrow" /> ... <Line Width="4" Y1="45" Y2="45" X1="0" X2="820" Style="1" Color="220,220,220" /> <!--campos--> <Label WordWrap="0" Width="249" X="0" Y="60" BorderStyle="0" Height="15" HAlignment="0" BorderColor="0,0,0" BackgroundColor="220,220,220" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" Text=" Referencia" FontWeight="65" FontSize="10" BorderWidth="1" FontFamily="Arial" /> ... <Label WordWrap="0" Width="49" X="770" Y="60" BorderStyle="0" Height="15" HAlignment="0" BorderColor="0,0,0" BackgroundColor="220,220,220" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" Text=" Fecha" FontWeight="65" FontSize="10" BorderWidth="1" FontFamily="Arial" /> </DetailHeader> |
Cabecera-2:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<AddOnHeader Level="0" Height="85"> <!--periodo--> <Label WordWrap="0" Width="40" X="0" Y="0" BorderStyle="0" Height="20" HAlignment="0" BorderColor="0,0,0" BackgroundColor="255,255,255" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" Text="Período" FontWeight="50" FontSize="10" BorderWidth="0" FontFamily="Arial Narrow" /> ... <Special WordWrap="0" Width="20" X="800" Y="20" BorderStyle="0" Height="20" HAlignment="2" DateFormat="19" BorderColor="0,0,0" BackgroundColor="255,255,255" Type="1" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" Text="" FontWeight="50" FontSize="10" BorderWidth="1" FontFamily="Arial Narrow" /> <Line Width="4" Y1="45" Y2="45" X1="0" X2="820" Style="1" Color="220,220,220" /> <!--campos--> ... <Label WordWrap="0" Width="49" X="770" Y="60" BorderStyle="0" Height="15" HAlignment="0" BorderColor="0,0,0" BackgroundColor="220,220,220" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" Text=" Fecha" FontWeight="65" FontSize="10" BorderWidth="1" FontFamily="Arial" /> </AddOnHeader> |
Cuerpo:
1 2 3 4 5 6 7 8 9 |
<Detail Height="15" Level="0" > <Field WordWrap="0" Width="50" X="0" Y="0" BorderStyle="0" NegValueColor="0,0,0" Height="11" HAlignment="0" DataType="0" Field="i_trazaarticulos_buffer.referencia" DateFormat="19" Currency="32" BorderColor="0,0,0" BackgroundColor="255,255,255" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" CommaSeparator="44" Text="[buffer.fechavto]" FontWeight="50" FontSize="9" BorderWidth="1" Precision="2" FontFamily="Arial Narrow" /> ... <Field WordWrap="0" Width="45" X="775" Y="0" BorderStyle="0" NegValueColor="0,0,0" Height="11" HAlignment="2" DataType="3" Field="i_trazaarticulos_buffer.fechafactura" DateFormat="19" Currency="32" BorderColor="0,0,0" BackgroundColor="255,255,255" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" CommaSeparator="44" Text="" FontWeight="50" FontSize="9" BorderWidth="1" Precision="2" FontFamily="Arial Narrow" /> <Line Width="1" Y1="13" Y2="13" X1="0" X2="820" Style="1" Color="220,220,220" /> </Detail> |
Pie:
1 2 3 4 5 6 7 8 |
<AddOnFooter Height="60" Level="0" > <Line Width="1" Y1="5" Y2="5" X1="0" X2="820" Style="1" Color="150,150,150" /> <Label WordWrap="0" Width="99" X="0" Y="10" BorderStyle="0" Height="11" HAlignment="0" BorderColor="0,0,0" BackgroundColor="255,255,255" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" Text="Suma y sigue" FontWeight="65" FontSize="9" BorderWidth="1" FontFamily="Arial" /> <CalculatedField CalculationType="1" WordWrap="0" Width="50" X="470" Y="10" BorderStyle="0" NegValueColor="0,0,0" Height="11" HAlignment="2" DataType="2" Field="i_trazaarticulos_buffer.cantidad" DateFormat="19" Currency="32" BorderColor="0,0,0" BackgroundColor="255,255,255" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" CommaSeparator="44" Text="" FontWeight="50" FontSize="9" BorderWidth="1" Precision="2" FontFamily="Arial Narrow" /> --> <CalculatedField CalculationType="1" WordWrap="0" Width="45" X="550" Y="10" BorderStyle="0" NegValueColor="0,0,0" Height="11" HAlignment="2" DataType="2" Field="i_trazaarticulos_buffer.precio" DateFormat="19" Currency="32" BorderColor="0,0,0" BackgroundColor="255,255,255" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" CommaSeparator="44" Text="" FontWeight="50" FontSize="9" BorderWidth="1" Precision="2" FontFamily="Arial Narrow" /> --> <Label WordWrap="0" Width="800" X="0" Y="40" BorderStyle="0" Height="11" HAlignment="0" BorderColor="0,0,0" BackgroundColor="255,255,255" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" Text="(*) Tipos: C=Compra, V=Venta, R=regularización de stock, D=Devolución de venta, E=Devolución de compra" FontWeight="50" FontSize="8" BorderWidth="1" FontFamily="Arial" /> </AddOnFooter> |
Detalles del pie:
1 2 3 4 5 6 7 8 |
<DetailFooter Height="60" Level="0" > <Line Width="1" Y1="5" Y2="5" X1="0" X2="820" Style="1" Color="150,150,150" /> <Label WordWrap="0" Width="99" X="0" Y="10" BorderStyle="0" Height="11" HAlignment="0" BorderColor="0,0,0" BackgroundColor="255,255,255" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" Text="Totales" FontWeight="65" FontSize="9" BorderWidth="1" FontFamily="Arial" /> <CalculatedField CalculationType="1" WordWrap="0" Width="50" X="470" Y="10" BorderStyle="0" NegValueColor="0,0,0" Height="11" HAlignment="2" DataType="2" Field="i_trazaarticulos_buffer.cantidad" DateFormat="19" Currency="32" BorderColor="0,0,0" BackgroundColor="255,255,255" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" CommaSeparator="44" Text="" FontWeight="50" FontSize="9" BorderWidth="1" Precision="2" FontFamily="Arial Narrow" /> --> <CalculatedField CalculationType="1" WordWrap="0" Width="45" X="550" Y="10" BorderStyle="0" NegValueColor="0,0,0" Height="11" HAlignment="2" DataType="2" Field="i_trazaarticulos_buffer.precio" DateFormat="19" Currency="32" BorderColor="0,0,0" BackgroundColor="255,255,255" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" CommaSeparator="44" Text="" FontWeight="50" FontSize="9" BorderWidth="1" Precision="2" FontFamily="Arial Narrow" /> --> <Label WordWrap="0" Width="800" X="0" Y="40" BorderStyle="0" Height="11" HAlignment="0" BorderColor="0,0,0" BackgroundColor="255,255,255" FontItalic="0" VAlignment="1" ForegroundColor="0,0,0" Text="(*) Tipos: C=Compra, V=Venta, R=regularización de stock, D=Devolución de venta, E=Devolución de compra" FontWeight="50" FontSize="8" BorderWidth="1" FontFamily="Arial" /> </DetailFooter> |
Final:
1 |
</KugarTemplate> |
Haz clic aquí para volver al índice
Está obsoleto y se sustituye por los INFORMES JASPER-REPORTS
http://manuales-eneboo-pineboo.org/eneboo-reports/disenos-de-impresion-e-informes-conceptos-basicos-de-jasper-studio/
Haz clic aquí para volver al índice
Crear un INFORME JASPER-REPORTS a partir de un .kut
Diseños de Impresión e informes. Crear un jrxml de Jasper Reports a partir de un kut
Haz clic aquí para volver al índice